Author Topic: Extend LazIDEIntf for DebugBossManager  (Read 218 times)

Dimitrios Chr. Ioannidis

  • Full Member
  • ***
  • Posts: 123
    • Nephelae
Extend LazIDEIntf for DebugBossManager
« on: April 09, 2020, 10:25:14 am »

  is there an easy way to access DebugBossManager instantiated in main.pas

Code: Pascal  [Select][+][-]
  1.   // initialize the other IDE managers
  2.   DebugBoss:=TDebugManager.Create(nil);
  3.   DebugBossManager:=DebugBoss;
  4.   DebugBoss.ConnectMainBarEvents;
  5.   DebuggerDlg.OnProcessCommand := @ProcessIDECommand;

using only IDEIntf and /or DebuggerIntf in a package ?

In my serial monitor window package, I need to know if and when the debugger finishes uploading the firmware to the device before opening the serial port.

Currently the only functionality I can implement is to close the serial port when the project runs ( with or without debugger ). If with debug and debugger supports the functionality, the firmware is uploaded to the device. After the debugging session is over, open the serial again .

When building a project, hooking I think is easier. For the upload to device functionality, AFAIK, a custom command is used and I think I can hook to it using the IDEExternToolIntf.

Any hint ?
« Last Edit: April 09, 2020, 11:08:10 am by Dimitrios Chr. Ioannidis »
Dimitrios Chr. Ioannidis


TinyPortal © 2005-2018