Skip to content

Conversation

@AndrewBrianHall
Copy link
Contributor

@pieandcakes @delmyers @jacdavis

Next attempt at documenting the launch.json. Took feedback from Pierson about trying to organize it more logically and providing some samples


Visual Studio Code generates a `launch.json` with almost all of the required information. To get started
debugging you need to fill in the `program` field with the path to the executable you plan to debug. This must be specified for
both the launch and attach (if you plan to attach to a running instance at any point) configurations.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually only true for gdb/llb in the attach case. Of course, right now, we have a bug that concord is requiring it for attach.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jacdavis So it sounds like we should leave it like this until we fix that?

@jacdavis
Copy link

jacdavis commented Sep 1, 2016

Only had two comments. Rest looks good to me.

**dumpPath**: If you want to debug a Windows dump file, set this to the path to the dump file to start debugging in the `launch` configuration.

**coreDumpPath**: Full path to a core dump file to debug for the specified program. Set this to the path to the core dump file to start debugging in the `launch` configureation.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that you can't debug dump files with mingw?

@delmyers
Copy link

delmyers commented Sep 1, 2016

I had just a couple of minor things. Otherwise, approved.

@AndrewBrianHall
Copy link
Contributor Author

Adding documentation for launch.json

@AndrewBrianHall AndrewBrianHall merged commit d843504 into master Sep 2, 2016

**stopAtEntry**: If set to true, the debugger should stop at the entrypoint of the target (ignored on attach). Default value is `false`.

**setupCommands**: JSON array of commands to execute in order to setup the GDB or LLDB. Example: `"customLaunchSetupCommands": [ { "text": "target-run", "description": "run target", "ignoreFailures": false }]`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Experimentation shows me that the element is NOT named "customLaunchSetupCommands", as shown here, but just "setupCommands". This example (and again down a few lines) is wrong.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abelenky Thank you. I'll get it fixed.

@pieandcakes pieandcakes deleted the andrehal-docs branch February 15, 2017 01:37
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants