Forum > General
Can I setup Lazarus to use Virtual Pascal compiler and still debug?
marcov:
From what I gather, VP generates OMF-386 object files and everything else including to debug info in proprietary .VPI files. (see comments $D+ directive)
This might mean that there is no in-exe-file debug info. The manual is not 100%, so I can be mistaken, specially given the fact that external debugging tools on OS/2 are mentioned (see below) I doubt it is dwarf, as it seem to derive from Intel and Microsoft toolchains, not GCC. Topview is probably a better bet.
For OS/2 it is said to be debuggable with ipmd, so if you can find out what ipmd groks, that would provide a hint for the LE format.
But whatever it does, trying to put it under Lazarus is probably aeons more work than simply fixing that toolkit for FPC.
MarkMLl:
I'm totally out of things for the moment because of various "legal shit" that I'm having to deal with.
I suppose that a useful general starting point would be something that hasn't had much love for a while, like the IDE's Subversion plugin.
Another thing I'd quite like to look at are some of the text decorations (e.g. for characters in the range $80 through $9f) in the console window, when I was last there I put some stuff in there that I think we were both unhappy with which has since been disabled... possibly as a result of your fpdebug work.
If I might suggest: lots of us have pet grievances or enhancements that we'd like to see the IDE address. What might be useful would be skeletons compiled as part of bigide which showed how a particular facility could be plugged in, e.g. if somebody wanted to enhance the search facilities, add extra criteria to the file open dialog(ue) or support a macro pad directly.
MarkMLl
Martin_fr:
--- Quote from: MarkMLl on February 14, 2023, 11:25:27 am ---I suppose that a useful general starting point would be something that hasn't had much love for a while, like the IDE's Subversion plugin.
--- End quote ---
And git....
--- Quote ---Another thing I'd quite like to look at are some of the text decorations (e.g. for characters in the range $80 through $9f) in the console window, when I was last there I put some stuff in there that I think we were both unhappy with which has since been disabled... possibly as a result of your fpdebug work.
--- End quote ---
One suggestion. IIRC, currently input is converted/formatted as it comes in. It should always be kept in original format, when display options are changed, it should be formatted for display only.
--- Quote ---If I might suggest: lots of us have pet grievances or enhancements that we'd like to see the IDE address. What might be useful would be skeletons compiled as part of bigide which showed how a particular facility could be plugged in, e.g. if somebody wanted to enhance the search facilities, add extra criteria to the file open dialog(ue) or support a macro pad directly.
--- End quote ---
Well, example plugins would be good. They would also be able to document the IdeIntf.
On the other hand, many of the IDE features are deeply embedded into the one big chunk of IDE code. Even if not needed. I started taking the debugger out of it, but it's still a long way to go. Other parts could follow... some day.
MarkMLl:
--- Quote from: Martin_fr on February 14, 2023, 12:53:10 pm ---One suggestion. IIRC, currently input is converted/formatted as it comes in. It should always be kept in original format, when display options are changed, it should be formatted for display only.
--- End quote ---
True. OTOH, I did that text decoration work at a time when I was looking at some weird emulation character sets (Minitel etc.), so the interesting thing was being able to have the program report what it thought it was seeing in a useful form. I think that the last time I checked I found hex output etc. working, but not some of the underlines etc. even though their checkboxes are still enabled.
Since that point, the ability of Lazarus etc. to attach to a running program has improved enormously, and this is almost always preferable if either a weird keyboard is expected or it's necessary to implement ANSI-style escape sequences etc.
MarkMLl
avra:
--- Quote from: dfatl on February 14, 2023, 02:38:20 am ---Hello,
I have a old DOS Borland 7 project that used TurboPower Professional. I was able to use Virtual Pascal to get it built by using their TurboPower Object Professional port (OP) and some minor modifications to some of the old TP units like TPWindow, TPMenu, .. but the old DOS IDE isn't very nice.
I have Notepad++ setup to be able to build and highlight errors where you can double click to go to the file/line but I can't debug with that.
So I'm trying Lazarus with Free Pascal but I know I'll have some porting issues with things used from the old Borland CRT like FastWrite and FastWriteWindow (Gnu Pascal supports those but it requires NCurses/PDCurses under Windows) so I thought, if Lazarus could be used as both the editor and debugger, it be great, I could deal with this port to Windows console application using Virtual Pascal and use Free Pascal for new projects.
So the main question is, Can Lazarus be used to build with Virtual Pascal and be used to Debug the applications?
--- End quote ---
I would do it the other way around. Drop Virtual pascal idea and go back to original Turbo Pascal project and try to replace parts which do not exist with freepascal alternatives developing replacement parts where needed.
https://wiki.freepascal.org/Mode_TP
Navigation
[0] Message Index
[*] Previous page