PDA

View Full Version : No debug information shown



bacchus
11th August 2017, 11:26
Dear all,

I'm new to this forum and hope that I found the correct section :-)

I'm teaching a C++ course in the winter semester and we just switched to Qt and Qt Creator. However I cant get the debugger to work properly.

I freshly installed the community edition of Qt & Qt Creator and MinGW using the qt online installer. When I now try to explore a segmentation fault using the debugger, there is no debugging information shown at all:

12544

For the example above I just used a piece of code that crashes on purpose:



int arr[100];
for (int i = 0; i < 1000; i++)
arr[i] = i;


I highly appreciate any ideas & comments.

Thanks,
Sebastian

high_flyer
11th August 2017, 14:51
Are you sure you are running a debug build? (the screenshot is too low resolution to make out anything in it)

bacchus
11th August 2017, 15:17
@high_flyer: yes, it is a debug build.


My original screenshot has a higher resolution, but it seems to get scaled down while uploading.

Best,
Sebastian

12546

high_flyer
11th August 2017, 15:21
What happens if you set a break point?
Does it stop on it?
And if it does, do you get content in call stack view and locals view?

bacchus
11th August 2017, 15:26
yes, if I set a break point, everything works as expected. It just doesn't with segfaults in Windows.

On my Linux machine the same project crashes just fine with all debug infos in the stack view.