Recent

Author Topic: [Solved] New Proj with no code: "the debugger encountered an error msg="Warning"  (Read 2137 times)

Gald

  • Full Member
  • ***
  • Posts: 107
This project is all empty, it was just a test of colors, but I can't run it anymore.
The only thing a did before run it again was to change a panel's color.
Some file is corrupted, maybe?
« Last Edit: September 28, 2021, 03:41:54 pm by Gald »
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
What versions of Windows, FPC and the Lazarus IDE are you sing?

Did you set the breakpoint which is causing the issue?

Gald

  • Full Member
  • ***
  • Posts: 107
Windows 10 (64) and Lazarus 2.0.12.
There is no breakpoint and I did nothing on the source editor.
It's everything on the screenshot.
Also, the program project is ok with no modifications.
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
The error suggests that a breakpoint has been set, possibly on line 43 of unit1.pas.

What happens if you choose the run the program without debugging? Lazarus > Run > Run Without debugging?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
43 is not the line number.

But otherwise, yes what Trev said.
Go to the "breakpoint window" and see what breakpoints you have. One of them can not be set.

This can for example happen when a breakpoint was set "by address" (eg in the asm window), and that address is no longer in the exe.

Gald

  • Full Member
  • ***
  • Posts: 107
Well done!

I did nothing, I swear!
Have no idea how this breakpoint is there, but by removing it, the app is running again.
Thank you both, Trev and Martin!
 :D
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

 

TinyPortal © 2005-2018