Page 1 of 1

Works debug in Ubuntu 17.04?

Posted: Mon Oct 02, 2017 9:19 am
by Saboteur
I have linux Purebasic version 5.61 (x64), on Ubuntu 17.04.
Debug works perfectly until some days. Breakpoints works, but I cannot run step by step.

I think it is for some update, but I am not sure. Anyone with same problem, or it is only me?

Re: Works debug in Ubuntu 17.04?

Posted: Wed Oct 04, 2017 10:42 am
by Saboteur
Anyone with this problem in Linux?

Thanks.

Re: Works debug in Ubuntu 17.04?

Posted: Wed Oct 04, 2017 11:46 am
by macros
I am using Kubuntu 17.04 and it works flawlessly here.

Maybe try it with a live disk and see if you can reproduce the problem on a clean setup,
if not, you know its something you have installed/running in the background.

Have you also tried to use Step by Step with the IDEs buttons?
Maybe its just something catching your F8 keypresses.

Re: Works debug in Ubuntu 17.04?

Posted: Wed Oct 04, 2017 2:09 pm
by Saboteur
The IDE buttons get disabled, and F8 simply don't work.
If you pc works ok, I suppose there must be anything wrong in my machine. I'll try to investigate or reinstall pb.

Thank you.

Re: Works debug in Ubuntu 17.04?

Posted: Wed Oct 04, 2017 5:27 pm
by macros
So I had time to do some testing and noticed that the buttons are greyed out for me in the following cases:

I stop the program during a delay call (The buttons are enabled as soon as the delay has passed)

The program is in a call to an external library. Here the buttons to become responsive after the call has finished.
This also seems to be the case if any thread accesses a external library. (Just quick testing)
So maybe your code gets stuck in an external call?

Re: Works debug in Ubuntu 17.04?

Posted: Thu Oct 05, 2017 9:04 am
by Saboteur
I discovered the problem.
When I execute OpenScreen(1920,1080,32,"") or another resolution, the debug commands and buttons deactivate. Yes, F8 also don't work. Can you check it please?

I don't know what is exactly the problem, because I was debuging the program flawlessly.

Could any system update modify purebasic debug?

Re: Works debug in Ubuntu 17.04?

Posted: Thu Oct 05, 2017 9:32 am
by macros
You are right, I can confirm it.
Also with Purebasic 4.44.

Here under Kubuntu I also cannot tab out of a screen.
Seems like you have a bug to report.

If I have time later today, I will try if the problem also exists with older Linux Versions in a VM
(because I haven't used the Screen library for ages)

Re: Works debug in Ubuntu 17.04?

Posted: Thu Oct 05, 2017 1:39 pm
by Saboteur
I don't understand anything. I tested it in Windows and Mac, and have the same problem.
It must be a common problem, but I have a very long program and worked ok, because I had to debug a lot of functions. :shock:

So, is not possible debug a program when using OpenScreen() ?

Re: Works debug in Ubuntu 17.04?

Posted: Sat Oct 21, 2017 2:26 pm
by swhite
Hi

I also experience this problem in PB 5.45 on Linux OpenSuse 43.2. Once the buttons are greyed out they never start working again, instead I have to restart PB.

Simon