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

Unable to start debugging. Launch options string provided by the project system is invalid. #2405

Closed
BDZNH opened this issue Aug 15, 2018 · 3 comments
Labels
debugger more info needed The issue report is not actionable in its current state

Comments

@BDZNH
Copy link

BDZNH commented Aug 15, 2018

Describe the bug

  • OS and Version: Windows 10 1803. 17134.165
  • VS Code Version: 1.26.0
  • C/C++ Extension Version: 0.17.7
  • Other extensions you installed (and if the issue persists after disabling them): None.
    the error look like this

image

This is the launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb)",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/a.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "miDebuggerPath": "D:\\CodeBlocks\\MinGW\bin\\gdb.exe",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}

This is the tasks.json

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build hello world",
            "type": "shell",
            "command": "g++",
            "args": [
                "-g", "${fileBasenameNoExtension}.cpp"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

I have google the error, but I don't get helpful information.

And there are no the char "0x08", the launch.json look like this in the notepad++ with show all characteres.
image

Any one can help?😀

@bobbrow bobbrow added this to Needs triage in 0.26.2 Milestone Aug 15, 2018
@pieandcakes
Copy link
Contributor

Please enable engineLogging and post the output.

@pieandcakes pieandcakes added debugger more info needed The issue report is not actionable in its current state labels Aug 15, 2018
@BDZNH
Copy link
Author

BDZNH commented Aug 16, 2018

Thanks a lot @pieandcakes . And I find the reason.
Missing a character "\" in the path of the gdb.exe.

@pieandcakes
Copy link
Contributor

Ok. Let me know if you need more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger more info needed The issue report is not actionable in its current state
Projects
None yet
Development

No branches or pull requests

2 participants