Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable 'Just My Code' in Visual Basic 2005 Express?

How do I disable 'Just My Code' in Visual Basic 2005 Express?

It is supposed to be in menu Tools -> Options -> Debugging -> Enable Just My Code, but I can't find it.

like image 335
Peter Mortensen Avatar asked Oct 08 '12 23:10

Peter Mortensen


People also ask

How do I disable just my code in Visual Studio code?

To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select or deselect Enable Just My Code.

How do I disable Debug mode in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

What is F11 in Visual Studio?

Step into codeTo stop on each statement when you're debugging, use Debug > Step Into, or select F11. The debugger steps through code statements, not physical lines. For example, an if clause can be written on one line: C#


1 Answers

This option is not available in Visual Studio itself for most Express editions (it is in Visual C# 2010 Express, though). For instance, in Visual Studio 2008 the options dialog is:

Options dialog for Visual Studio 2008

But in the Express edition, Visual Basic 2005 Express, "Debugging" is not available - only 4 of the 12 are:

Options dialog for Visual Studio 2008

However, the 'Just My Code' setting can be changed through the settings file, CurrentSettings.vssettings:

  1. Open the settings file for Visual Basic Express 2005, CurrentSettings.vssettings (see below)
  2. Change the value of JustMyCode from "1" to "0" - replace <PropertyValue name="JustMyCode">1</PropertyValue> with <PropertyValue name="JustMyCode">0</PropertyValue>.
  3. Save the file, but under a different name, like JustMyCodeOff_CurrentSettings.vssettings.
  4. Open Visual Basic 2005 Express.
  5. Open menu Tools -> Import and Export Settings -> Import selected environment settings (the middle option) -> Next.
  6. Choose “No, just import new settings, overwriting my current” -> Next (as we already have a backup copy in the old file that we didn't touch).
  7. Press Browse to the new settings file, for example, JustMyCodeOff_CurrentSettings.vssettings.
  8. Press Next and Finish.

Note that the line in the settings file containing "Just My Code" is extremely long, more than 200,000 characters, and not all text editors are able to handle it. The safe option may be to use a hex editor to change "1" to "0".

A common location of CurrentSettings.vssettings is:

C:\Documents and Settings\SomeUser\My Documents\Visual Studio 2005\Settings\VB Express\CurrentSettings.vssettings

Other settings for the debugger are:

  • ConfirmDeleteAllBreakpoints
  • StopAllProcesses
  • StopOnExceptionCrossingManagedBoundary
  • EnableAddressLevelDebugging
  • ShowDisassemblyWhenNoSource
  • EnableBreakpointConstraints
  • UseExceptionHelper
  • AutoUnwindOnException
  • JustMyCode
  • ShowNonPublicMembers
  • WarnIfNoUserCodeOnLaunch
  • AllowImplicitFuncEval
  • AllowToString
  • UseSourceServer
  • ShowSourceServerDiagnostics
  • AlwaysColorMarkerText
  • UseDocumentChecksum
  • OutputToImmediate
  • ShowRawStructures
  • DisableJITOptimization
  • ShowNoSymbolsDialog
  • HexDisplay
  • HexInput
  • AddUnmappedBreakpointAtMappedLocation
  • StepIntoOnRestart
  • ENCEnable
  • ENCApplyChangesOnContinue
  • ENCWelcome
  • ENCStaleCodeWarning
  • ENCPrecompile
  • ENCRelink
  • NOENCAllowEdits
  • NOENCIgnore
  • NOENCRebuild
  • ConfirmFoundFiles
  • DisasmLineNumbers
  • ModulesShowAll
  • UseCodeSense
  • DisasmFields
  • CallStackViewOptions
  • ShowExternalCode
  • SourceStepUnit
  • DisasmStepUnit
  • CrossThreadCallStack
  • SaveRemoteDumps
  • LongEvalTimeout
  • NormalEvalTimeout
  • QuickwatchTimeout
  • DataTipTimeout
  • AutosReturnValsTimeout
  • AutosRegistersTimeout
  • LocalsTimeout
  • RegistersTimeout
  • AddressExpressionTimeout
  • ScriptDocsTimeout
  • ImmediateWindowTimeout
  • SetValueTimeout
  • ShowNonprintableCharsAsGlyphs
  • ShowSystemProcesses
  • ShowProcessesFromAllSessions
  • EnhancedDataTips
  • UserSpecifiedEngines
  • OutputOnException
  • OutputOnModuleLoad
  • OutputOnModuleUnload
  • OutputOnModuleSymbolSearch
  • OutputOnProcessDestroy
  • OutputOnThreadDestroy
  • OutputOnOutputDebugString
  • OutputOnDebuggerMessage
  • VariableWindowIcons
  • DisableAttachSecurityWarning
  • LoadDllExports
  • NativeRPC
  • AllowSideEffectEval
  • EnableWatchTipBar
  • AutoLoadFromSymbolPath
  • LoadSymbolsWhenSettingsChanged
  • OneClickEdit
  • OfferArrayExpansion
  • VariableWindowPromptOnLargeExpansion
  • VariableWindowMaxSupportedChildren
  • PromptToAddSourceToIgnoreList
  • SourceServerExtractToDirectory
  • DefaultTracepointMessage
  • ProgramToDebugPath
  • AttachToProcessDefaultEngineList
  • SecureSourceLocalDirectory
  • SymbolPath
  • SymbolPathState
  • SymbolCacheDir
like image 52
Peter Mortensen Avatar answered Oct 12 '22 03:10

Peter Mortensen