Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic debug config info #8861

Closed
wants to merge 13 commits into from
Closed

Dynamic debug config info #8861

wants to merge 13 commits into from

Conversation

elahehrashedi
Copy link
Contributor

@elahehrashedi elahehrashedi commented Feb 14, 2022

Modification to "Run and Debug" button in debug panel to make it consistent with our play button:

  1. keeping the Debug info in memory and skip writing it in launch.json
  2. if the launch.json exists try to read the debug configs to check if the user has modified any debug info
    3.Fixes are added for single-mode file debugging, however it is only working for cl.exe builds and msvc debugger for now

Feature Request: #8773

@elahehrashedi elahehrashedi requested a review from a team February 14, 2022 19:41
@@ -31,15 +31,15 @@ function isDebugLaunchStr(str: string): boolean {
* Ensures that the selected configuration's preLaunchTask (if existent) is populated in the user's task.json.
* Automatically starts debugging for "Build and Debug" configurations.
*/
export class QuickPickConfigurationProvider implements vscode.DebugConfigurationProvider {
private underlyingProvider: CppConfigurationProvider;
export class CppDebugConfigurationProvider implements vscode.DebugConfigurationProvider {
Copy link
Member

@bobbrow bobbrow Feb 14, 2022

Choose a reason for hiding this comment

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

Let's not rename all this stuff. Can you change it back?

Naming a class "Underlying" isn't a very helpful choice. "Underlying" only has meaning within the context that it's used. A standalone class is not "underlying" anything.

We shouldn't use the abbreviation dbg in variable names. In general abbreviations should be avoided, but in this case it also causes confusion with the cppdbg debug type which is an actual thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the name underlying is actually currently existing, I removed it in the next PR, in refactoring the code.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2022
@elahehrashedi elahehrashedi deleted the elrashed/dynamicLaunch branch May 19, 2022 20:56
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.

2 participants