The Zeus Workspace, Debugger menu launched the GDB debugger, and that debugger should work with any compiler that can produce DWARF debug information.
DCD Autocomplete
Using dfmt on Save
Using Dscanner Inside Zeus
With the debugger running it can then be controlled using the resulting Debugger Control dialog:
NOTE: Other Zeus, D language specific features can be found here: Using GDB with Zeus
Re: Using GDB with Zeus
C Language Debugging Example
Consider the following test.c single file application:
Assuming the GCC compiler has been installed, the compiler details found in the C/C++ Document Type need to be changed to be changed to be:
With the test.c file active the Compiler, Compile menu will run this compiler command line:
That command line will produce a test.exe file containing DWARF symbolic information.
And with the test.c file active the Workspace, Debugger menu will run the GDB compiler for that test.exe file as shown below:
Consider the following test.c single file application:
Code: Select all
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello world!\n");
for (int i = 0; i < argc; ++i)
{
printf("%d: => %s\n", i, argv[i]);
}
return 0;
}
Code: Select all
gcc -ggdb "$fn" -o "$fb".exe
Code: Select all
gcc -ggdb test.c -o test.exe
And with the test.c file active the Workspace, Debugger menu will run the GDB compiler for that test.exe file as shown below:
Re: Using GDB with Zeus
D Language Debugging Example
Consider the following test.d single file application:
Assuming the LDC compiler has been installed, the compiler details found in the D Document Type need to be changed to be changed to be:
With the test.d file active the Compiler, Compile menu will run this compiler command line:
That command line will produce a test.exe file containing DWARF symbolic information.
And with the test.d file active the Workspace, Debugger menu will run the GDB compiler for that test.exe file as shown below:
Consider the following test.d single file application:
Code: Select all
import std.stdio;
void test(int index)
{
writeln("Hello: ", index);
}
void main()
{
writeln("Hello, World!");
for (int i = 0; i < 10 ; ++i)
{
test(i);
}
}
Code: Select all
ldc2.exe -gdwarf "$fn"
Code: Select all
ldc2.exe -gdwarf test.d
And with the test.d file active the Workspace, Debugger menu will run the GDB compiler for that test.exe file as shown below: