wbkboyer / vscode-bug-report-examples

A repo with a simple Hello World C program to demonstrate issues with VSCode C/C++ Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vscode-bug-report-examples

A repo with a simple Hello World C program to demonstrate issues with the VSCode C/C++ Extension v1.19.4 on Windows.

Summary of issues encountered

  • For Clang on MacOS, spaces added to enclose -g parameter causes the build to fail
  • For MinGW GCC, spaces added to enclose args, which causes the build to fail
  • For MSVC compiler toolchain
    • Debugger breakpoints not working with external console (others seem to have encountered this issue years ago)
    • On some projects, externalConsole is deprecated and we are instructed to use console, but for other projects, externalConsole is accepted and there's an error that console is not an accepted key.
    • With externalConsole set to false (or console set to integratedTerminal)
      • Can't find .pdb symbols file for some projects (for example, edge-addition-planarity-suite), even after setting symbolSearchPath or symbolOptions; see:
      • If you manage to attach the debugger, then the process terminates normally or via the "Stop Debugging" button, then try to start a new debug session, for small projects the debugger process ends without the program being executed; for larger projects, VSCode hangs.
        • Process for executable is not killed after VSCode is terminated
      • Setting cwd to ${workspaceFolder} not being set correctly in internal console so relative paths are broken; user must start debugging with focus given to entrypoint C file open
  • Bottom of screen run configuration (blue bar icon) doesn't match actual run configuration being used when isDefault set to true for configuration in tasks.json, but rather matches the first configuration in tasks.json/launch.json,
  • when isDefault: true, any changes to launch.json/tasks.json aren't respected (e.g. changing external vs. internal console) unless you turn isDefault back to false and choose the desired task

About

A repo with a simple Hello World C program to demonstrate issues with VSCode C/C++ Extension

License:Apache License 2.0


Languages

Language:C 100.0%