User forums > Using Code::Blocks

[MacOSX 10.15][svn-r12240]zsh: no such file or directory

<< < (2/3) > >>

Suryavarman:

--- Quote ---Are you able to debug using this wrapper script?
--- End quote ---
Nop. There are no stack and the breaking points don't work. All it's like you said.

Suryavarman:
The new version of Codelite use a new way and the debug works now:
They do that:
To launch a terminal without debuguing they call a temporary .sh file.

open -n -a Terminal /tmp/codelite-exec.sh
the terminal is calling with this arguments => /tmp/codelite-exec.sh ; exit;

--- Code: ---#!/bin/bash
command="/[…]/Test_CL_Mac/Debug/Test_Terminal"
cd /[…]/Test_CL_Mac/Debug && ${command}
echo Hit any key to continue...
read

--- End code ---

To launch a terminal with debuguing they call another temporary .sh file.
the terminal is calling with this arguments => /tmp/codelite-lldb-helper.sh ; exit;

--- Code: ---#!/bin/bash
tty > /tmp/terminal.tty.11395
sleep 12345

--- End code ---

------

With VSCode:

It's funny if you follow the tutorial of VSCode with Cland MacOS :
https://code.visualstudio.com/docs/cpp/config-clang-mac
They are a similar problem... MacOs Macos…

--- Code: ---code .
zsh: command not found: code

--- End code ---

------

I continue to investigate.

oBFusCATed:
Do you have a working gdb? I'm not able to codesign mine on Catalina. :(

Suryavarman:
I use the brew gdb(s) and i work on Catalina too.

/usr/local/Cellar/gdb/8.0.1/bin/gdb
/usr/local/Cellar/gdb/10.1/bin/gdb

brew install gdb

I haven't try to use them directly in command line.
But the 8.0.1 and 10.1 works with Codelite.
With Codeblocks the gdb path seem to be correct, the only problem come from the terminal execution.

With XCode it's work but i don't know witch gdb is set.

I'm not motivate to test VCode because i have to create manually all the configuration file.


--- Code: ---    tasks.json (compiler build settings)
    launch.json (debugger settings)
    c_cpp_properties.json (compiler path and IntelliSense settings)
--- End code ---



Suryavarman:
You can also try with the default llvm debugger:
/usr/bin/lldb

--- Code: ---/usr/bin/lldb -v
lldb-1200.0.44.2
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version