- This wiki is out of date, use the continuation of this wiki instead
Debugging
From FenixWiki
(Difference between revisions)
| Revision as of 14:57, 15 December 2007 (edit) 85.144.194.29 (Talk) (→Debug mode - I take it you meant .prg there.) ← Previous diff |
Current revision (20:23, 5 April 2008) (edit) (undo) Sandman (Talk | contribs) |
||
| (3 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
| [[Category:general]] | [[Category:general]] | ||
| + | [[Category:debugging]] | ||
| Debugging a [[Fenix]] program can be tricky. So here are a few tips to get you on your way. | Debugging a [[Fenix]] program can be tricky. So here are a few tips to get you on your way. | ||
| Line 8: | Line 9: | ||
| === Shortcuts === | === Shortcuts === | ||
| {| | {| | ||
| - | | ALT-C || - Show/hide the [[Fenix | + | | ALT-C || - Show/hide the [[Fenix console]]. |
| |- | |- | ||
| | ALT-F || - Go into fullscreen mode. | | ALT-F || - Go into fullscreen mode. | ||
| Line 14: | Line 15: | ||
| | ALT-G || - Make a screenshot and save it as <code>shotXXXX</code> where <code>XXXX</code> is the lowest possible number. | | ALT-G || - Make a screenshot and save it as <code>shotXXXX</code> where <code>XXXX</code> is the lowest possible number. | ||
| |- | |- | ||
| - | | ALT-P || - Show/hide the [[Fenix | + | | ALT-P || - Show/hide the [[Fenix profiler]] |
| |- | |- | ||
| | ALT-R || - Resets the profile history of the Fenix Profiler. | | ALT-R || - Resets the profile history of the Fenix Profiler. | ||
| Line 25: | Line 26: | ||
| |- | |- | ||
| | ALT-Z || - Switch the [[MODE_16BITS]] flag of [[graph_mode]] on/off. | | ALT-Z || - Switch the [[MODE_16BITS]] flag of [[graph_mode]] on/off. | ||
| - | | | + | |} |
| + | |||
| + | == Fenix Console == | ||
| + | The [[Fenix console]] is a pretty handy debugging tool. You can view all active [[process]]es, view values of any variable, perform one instruction, perform one frame, manage breakpoints on processes, manage processes, etc. A sure go for debugging. | ||
| + | |||
| + | == Fenix Profiler == | ||
| + | The [[Fenix profiler]] is somewhat handy, mostly for tracing where a program is the most power hungry. | ||
| + | |||
| + | {{Debugging}} | ||
Current revision
Debugging a Fenix program can be tricky. So here are a few tips to get you on your way.
Contents |
[edit] Debug mode
To run a game in debug mode, you have to compile the .prg with the -g option (e.g. fxc.exe -g name.prg). Then when you run the game, it is in debug mode. In this there's a number of shortcuts, with a variety in usefulness.
[edit] Shortcuts
| ALT-C | - Show/hide the Fenix console. |
| ALT-F | - Go into fullscreen mode. |
| ALT-G | - Make a screenshot and save it as shotXXXX where XXXX is the lowest possible number.
|
| ALT-P | - Show/hide the Fenix profiler |
| ALT-R | - Resets the profile history of the Fenix Profiler. |
| ALT-S | - Activate/Deactivate the Fenix Profiler. |
| ALT-W | - Go into window mode. |
| ALT-X | - Exit. |
| ALT-Z | - Switch the MODE_16BITS flag of graph_mode on/off. |
[edit] Fenix Console
The Fenix console is a pretty handy debugging tool. You can view all active processes, view values of any variable, perform one instruction, perform one frame, manage breakpoints on processes, manage processes, etc. A sure go for debugging.
[edit] Fenix Profiler
The Fenix profiler is somewhat handy, mostly for tracing where a program is the most power hungry.
| Debugging | |
| Debugging • Fenix console • Fenix profiler | |
