![]() |
![]() |
#1 |
Registered User
Join Date: Jan 2023
Location: uk
Posts: 8
|
Saving debugger output to a file
Hi. I've been using WinUAE's debugger to log audio register data using watch points. Something like:
w 0 dff0a2 8 W L gets me the basic info I need for a channel, then I've got another for vblank updates to sync the timing. As you know Window's console buffer size has a hard limit so I can only get about 20 seconds of data before it wraps around. I saw a couple of search results about piping debugger info out to a text file using pipe\WinUAE. Is that something I can make use of here? Or would I be better off making a local build of the emulator and adding what I need to that? I guess this is quite an unconventional use case for the debugger. thanks. |
![]() |
![]() |
#2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
Easiest solution probably is to add option (debugger option or command line) that automatically writes all debugger output to winuaelog.txt.
|
![]() |
![]() |
#3 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,358
|
That would be just great!! I'll be another user of that feature. Or change "L" by "P" (print to console), and when "L" is set print and log to logfile.
|
![]() |
![]() |
#4 |
Registered User
Join Date: Jan 2023
Location: uk
Posts: 8
|
Yes that would be a great addition, many thanks.
|
![]() |
![]() |
#5 |
Registered User
Join Date: Jan 2023
Location: uk
Posts: 8
|
Out of interest, is this planned for the new 5.0 versions?
I use this kind of output when writing music drivers. It's quite nice to get a full song output on the emulator side to study later. |
![]() |
![]() |
#6 |
Registered User
Join Date: Apr 2023
Location: Washington/USA
Posts: 35
|
The best method for your case could be using a command line pipe to redirect the output to a text file. You could use the command `WinUAE > output.txt` in a Command Prompt window to direct the debugger's output to the file `output.txt`. This approach should work irrespective of the emulator's version and would help you gather data without worrying about console buffer size limitations.
|
![]() |
![]() |
#7 |
Registered User
Join Date: Jan 2023
Location: uk
Posts: 8
|
Yes, I've had various goes at piping the data out but only had success getting the bootlog.
|
![]() |
![]() |
#8 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
-conlogfile <path to file> command line parameter writes all console output to a file. (winuae.7z feature only, warning: winuae.7z's after last official can be more dangerous than usually
![]() |
![]() |
![]() |
#9 |
Registered User
Join Date: Jan 2023
Location: uk
Posts: 8
|
Excellent, many thanks for adding this.
|
![]() |
![]() |
#10 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,358
|
seconded! excellent, thanks!
|
![]() |
![]() |
#11 |
Registered User
Join Date: Jan 2023
Location: uk
Posts: 8
|
Sorry, where do I download winuae.7z from?
|
![]() |
![]() |
#12 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
From winuae.net: https://www.winuae.net/files/b/winuae.7z
|
![]() |
![]() |
#13 |
Registered User
Join Date: Jan 2023
Location: uk
Posts: 8
|
Ah, thanks.
|
![]() |
![]() |
#14 |
Registered User
Join Date: Jun 2008
Location: somewhere else
Posts: 523
|
Most useful, thanks.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving an array to File | LeCaravage | Coders. Blitz Basic | 4 | 14 February 2021 16:37 |
DMA debugger output to text file? | Jherek Carnelia | support.WinUAE | 3 | 09 December 2019 19:05 |
Interpreting DMA-Debugger output | selco | support.WinUAE | 10 | 27 November 2019 20:48 |
Where is my file saving too? Need to back it up | Kola | New to Emulation or Amiga scene | 19 | 20 December 2008 20:23 |
Saving the Amiga confiq file? | neil324 | project.GameBase Amiga | 2 | 06 October 2008 18:42 |
|
|