-
Notifications
You must be signed in to change notification settings - Fork 51
Description
sublime-text build 4200,
G++-13 v13.3.0,
Linux, the issue exists on both Ubuntu 24.04LTS and Linux Mint 22.2.
I tried several sublime-project files, including the sample cpp.sublime-project (of course I've made sure to change clang++ to g++ to suit my system).
Here is one setup that works at a time, but not at other times:
{
"folders": [
{
"path": ".",
},
],
"debugger_tasks": [
{
"name": "Compile",
"working_dir": "${project_path}",
"shell_cmd": "g++ -g ${file_name} -o ${file_base_name}_debug",
"file_regex": "(..[^:]):([0-9]+):([0-9]+)?:? error: (.)",
},
],
"debugger_configurations":
[
{
"type": "lldb",
"request": "launch",
"name": "Run",
"pre_debug_task": "Compile",
"program": "${project_path}/${file_base_name}_debug",
"stdio": ["input.txt","output.txt"],
"args": [],
"cwd": "${project_path}"
},
],
}
I have pin'd down the problem is that pre_debug_task may complete successfully, or may not - its behavior seem hard to predict. In the debugger_tasks section, I tried to change all possible keys and values, for example,changing
I even searched through these open issues, but can't see this has been mentioned any way, nor a solution is provided.
I tried to launch sublime from command line, so as to see any error messages (also searched .xsession-errors), but none. This means there is no error, it may be that "Compile" job failed to trigger, or waiting for some input somewhere and stuck. As I explained above I even tried not to use any variable but hard-code all my files and g++ binary, still no luck.
Does anyone here have a clue?
Final word, when it works, I really like its ease of use to help me debugging my code. Thank you Daveleroy for making this sublime debugger. Hope you can understand my frustration when it refuses to compile.