By default, xmake can run the specified target program through the following commands after compiling the program:
xmake run [target] [arguments] ...
In addition, under linux/macosx, the associated debugger is currently supported to debug the specified target directly. You only need to add -d/--debug
Parameter options:
xmake run -d [target] [arguments] ...
By default, xmake uses lldb under macosx and gdb under linux. Debugger xmake will automatically detect when configuring. If you need to specify a debugger path, you can manually configure it:
xmake f --debugger=/usr/bin/gdb xmake run -d demo
It should be noted that there is no support on Windows at present, but it is planned to support it in the near future..