Skip to content

Commit 3627c12

Browse files
authored
Merge pull request #1264 from corob-msft/cr-jmc-review
Updates to /JMC option doc
2 parents a7e2f34 + 6c19148 commit 3627c12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/build/reference/jmc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ ms.workload: ["cplusplus"]
1212
---
1313
# /JMC (Just My Code debugging)
1414

15-
Specifies compiler support for native *Just My Code* debugging in the Visual Studio debugger. This option allows Visual Studio to automatically step over system, framework, library, and other non-user calls, and to collapse those calls in the call stack window. The **/JMC** compiler option is available starting in Visual Studio 2017 version 15.8.
15+
Specifies compiler support for native *Just My Code* debugging in the Visual Studio debugger. This option supports the user settings that allow Visual Studio to step over system, framework, library, and other non-user calls, and to collapse those calls in the call stack window. The **/JMC** compiler option is available starting in Visual Studio 2017 version 15.8.
1616

1717
## Syntax
1818

1919
> **/JMC**\[**-**]
2020
2121
## Remarks
2222

23-
The Visual Studio [Just My Code](/visualstudio/debugger/just-my-code) option allows the Visual Studio debugger to step over system, framework, library, and other non-user calls. The **/JMC** compiler option enables support for Just My Code debugging in your native C++ code. When **/JMC** is enabled, the compiler inserts calls to a helper function, `__CheckForDebuggerJustMyCode`, in the function prolog. The Visual Studio debugger uses this information to check whether the debugger step operation should skip this function call. To enable Just My Code in the Visual Studio debugger, on the menu bar, choose **Tools** > **Options**, and then set the option in **Debugging** > **General** > **Enable Just My Code**.
23+
The Visual Studio [Just My Code](/visualstudio/debugger/just-my-code) settings specify whether the Visual Studio debugger steps over system, framework, library, and other non-user calls. The **/JMC** compiler option enables support for Just My Code debugging in your native C++ code. When **/JMC** is enabled, the compiler inserts calls to a helper function, `__CheckForDebuggerJustMyCode`, in the function prolog. The helper function provides hooks that support Visual Studio debugger Just My Code step operations. To enable Just My Code in the Visual Studio debugger, on the menu bar, choose **Tools** > **Options**, and then set the option in **Debugging** > **General** > **Enable Just My Code**.
2424

25-
The Just My Code feature requires that your code links to the Universal C Runtime Library (CRT) by use of the [/MT, /MTd, /MD, or /MDd](md-mt-ld-use-run-time-library.md) compiler option, or the [/DEFAULTLIB](defaultlib-specify-default-library.md) linker option. If you project does not link to the CRT, you may see linker error **LNK2019: unresolved external symbol __CheckForDebuggerJustMyCode**. To resolve this error, either link to the CRT, or disable the **/JMC** option.
25+
The **/JMC** option requires that your code links to the C Runtime Library (CRT), which provides the `__CheckForDebuggerJustMyCode` helper function. If your project does not link to the CRT, you may see linker error **LNK2019: unresolved external symbol __CheckForDebuggerJustMyCode**. To resolve this error, either link to the CRT, or disable the **/JMC** option.
2626

2727
By default, the **/JMC** compiler option is off. However, starting in Visual Studio 2017 version 15.8 this option is enabled in most Visual Studio project templates. To explicitly disable this option, use the **/JMC-** option on the command line. In Visual Studio, open the project Property Pages dialog box, and change the **Support Just My Code Debugging** property in the **Configuration Properties** > **C/C++** > **General** property page to **No**.
2828

0 commit comments

Comments
 (0)