Skip to content

Regarding "Just My Code" support #6668

Closed

Description

@TryerGit

Hello,

I was a bit surprised to see the following thread declared closed:

Issue #6232

According to this Visual Studio IDE document, enabling "Just My Code" is achieved via a compiler option when running CL.exe. In any case, CL.exe is part of the compiler toolchain that is outside of VSCode anyway.

So, if VSCode is setup with a build task that calls CL.exe and MSBuild.exe where CL.exe is provided with a .vcxproj project file that has the compiler option /JMC set, then why is it stated on issue 6232 linked above that Just My Code is not supported by the Cpptools extension?

In other words, what would it mean for Cpptools extension to support "Just My Code" ?

It appears that skipping uninteresting code while debugging is provided for Node.js debugging ( see link )

while currently unavailable for C++ debugging, although, as pointed to above, what that means is not clear.

Activity

  1. sean-mcmanus commented on Dec 15, 2020

    @sean-mcmanus
    Contributor

    It was closed as a duplicate of #5763 .

    I would guess there could be additional debugger work required.

    Andrew Wang (@WardenGnaw) might know more.

  2. WardenGnaw commented on Dec 15, 2020

    @WardenGnaw
    Member

    When compiling with /JMC it inserts helper function calls to __CheckForDebuggerJustMyCode. The debugger needs to support calls that hit that method and step out until it reaches a user code frame.

    Please vote on #5763 by adding a 👍 to help us prioritize our features.

  3. locked and limited conversation to collaborators on Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions