microsoft / microsoft/vscode-cpptools
[linux] debugging with gdb not working anymore
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
os: ubuntu 20.04
vscode: 1.48.2
cpptools: v0.29.0 (tried both default & insiders channels)
gdb: 9.1
Hi,
i'm trying to launch the debugger
it was working fine a month ago (before vacation)
now I get an error. The program doesn't seem to start at all, like nothing gets executed.
however i can debug it manually using gdb --args myprogram myargs
Terminal :
&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
/bin/bash: -c: line 0: unexpected EOF while looking for matching `}'
/bin/bash: -c: line 1: syntax error: unexpected end of file
[1] + Done "/usr/bin/gdb" --interpreter=mi --tty=${DbgTerm} 0<"/tmp/Microsoft-MIEngine-In-op229nom.ijv" 1>"/tmp/Microsoft-MIEngine-Out-cwku9ms3.0ks"
Debug Console :
1: (959) <-1017-exec-run
1: (960) ->=thread-group-started,id="i1",pid="723395"
1: (960) ->=thread-created,id="1",group-id="i1"
1: (961) ->=thread-exited,id="1",group-id="i1"
1: (961) ->=thread-group-exited,id="i1"
1: (961) ->1017^error,msg="During startup program exited with code 1."
1: (961) ->(gdb)
1: (966) <-1018-thread-info 1
1: (966) ->1018^done,threads=[]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files, tests, or entry points. Start by reproducing the VS Code debugger launch with Ubuntu 20.04, GDB 9.1, and the listed extension version, then compare the terminal and Debug Console output. Done means the program launches under the debugger without the shell syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, typescript, vscode
- Domain
- developer-experience, operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100