AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

DesignTime-Package debuggen?

Ein Thema von himitsu · begonnen am 31. Aug 2024 · letzter Beitrag vom 6. Sep 2024
 
Kas Ob.

Registriert seit: 3. Sep 2023
448 Beiträge
 
#2

AW: DesignTime-Package debuggen?

  Alt 1. Sep 2024, 09:41
I want to share my experience with older versions like XE8 with something similar that might be relevant or not, just food for thought.

Zitat:
set start parameters
* host = $( BDS )\bin\ bds .exe
* param = -pDelphi
* path = $( BDS )\bin
In my XE8 i don't have what named "path" !!, i have "Working Directory" and "Source Path", so i will assume they renamed "Source Path", in all cases..

If you build and saved new and simple a project les say project1.exe, then it will work fine and debug fine and you can put break points and more importantly you can see symbols being resolved like method names...
Now if you run this project1.exe by Windows Explorer then click choose to attach to process then we have two output:
1) if the project1.dpr is opened in the IDE then symbols will be resolved.
2) If no projects are opened or another project is opened, then the Debugger ignore all TDS info and no symbols will be resolved or shown, the debugger can't recognize the project1.exe and handle it as unknown without any debug info..

This is strange and frustrating, and it is a failure... the debugger had it all in TDSinfo yet it don't try.

Anyways, i just wanted to give you hint about this behavior which very likely to be the case with lost debug info and symbols recognition.

To confirm if this is the case, i suggest to repeat your steps, then use VMMap from https://learn.microsoft.com/en-us/sy...ownloads/vmmap , find your package in memory of the debugged bds process,(yup thee is no search, so sort by details) it will be colored as purple and marked as image, expanding that will see .text and .itext sections and their addresses, use these addresses with in your debugger and browse these memory regions to see if your debugger (the one that debugging) is resolving your package symbols and if it did resolve any to that extent..

Now, back to the paths, i don't know if this will help or not but it might be failing/confusing the opened dpr project with running BDS file instead of loaded package/library, so try to attach the bds.exe instead of loading it, who knows... it might resolve the loaded package project and resolve it, hence allowing you to debug, while losing the starting point, but this can be tweaked or workaround with different hacks, might be later talk for different situation.
Kas
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:41 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz