Some time back comrade created a patch to add features to FASMW. Among them was basic F8 Debug functionality. Problem being that FASM works for many different environments, and if one wants to also debug in multiple environments then separate versions of FASM are needed. I've attempted to eliminate part of that need with this patch.
How does it work? Almost transparently.
FASM stores information about the output format of each compile, that information is used to create the INI keys. So, a different tool can be assigned to every output format. The key also includes the file extension to support binary file differentiation. With this patch it becomes easy to program in DOS/Win32/Win64 all at the same time and execute the correct debugging tool.
How to configure? The file type one wishes to configure must be compiled, and then select the "Debugger setup..." option from the menu. Normally, the command line needs to be preceded with "%s" which gets replaced by the debugger program. The second %s is the name of the file generated by FASM.
Let's look at an example:
formatbinaryas'txt' db'This is a test.'
...here we want to execute Notepad after assembling this file. So, the debugger is C:\Windows\System32\Notepad.exe and the command line is "%s" %s
Some other use cases:
A) execute your make tool for COFF files.
B) start an emulator to debug OS development
Only known bug is when there isn't an extension on the compiled file - which I just noticed. Diff was created against 1.71.11 sources (really IDE 0.96.0), but easy enough to patch manually.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum