Page 1 of 1

Question about the compiler or debugger mode used.

Posted: Thu Oct 24, 2019 7:21 pm
by Kurzer
Hello fellows,

after a longer break for private reasons, I start a new project with PureBasic.

Now I noticed a small peculiarity. Nothing dramatic, but it irritates.

I installed several PB versions in parallel and each version also offers all compiler versions of the older PB installations in the compiler options.

Here for example the compilers list of the PB 5.71 x64 installation:
Image

In all PB versions all settings are absolutely identical, since I let them be synchronized with a shell script as soon as I change a setting.

I have now loaded a project template into my current PB 5.71 x64, which has been created under PB version 5.62. In PB 5.62 the compiler 5.71 didn't exist yet, so "use compiler 5.62" is shown in the project options, even if the project is loaded in PB version 5.71.

Image

If I start the project in PB 5.71, it is started surprisingly with the external debugger. However, in the settings of all my PB versions "Use internal debugger" is configured and in the project itself there is no explicit setting to use the internal or external debugger.

Image

Image

If I change the compiler to be used in the project compiler options then to 5.71 and 5.71 x64 (and make no other setting), then the project suddenly starts as expected with the internal debugger.

Why does selecting the compiler affect the debugger mode?

Kurzer

Re: Question about the compiler or debugger mode used.

Posted: Thu Oct 24, 2019 8:54 pm
by freak
The debugger version must match the compiler version to ensure there are no incompatibilities. The debugger in the IDE can only handle the compiler from the same PB version. If you select another PB compiler, the debugger is automatically switched to the standalone one so the debugger executable from the selected compiler's directory can be used and the versions match.

Re: Question about the compiler or debugger mode used.

Posted: Thu Oct 24, 2019 9:02 pm
by Kurzer
Freak, thanks for clarify this. Image