English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 15 January 2023, 18:53   #1
4matmusic
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.
4matmusic is offline  
Old 22 January 2023, 19:19   #2
Toni Wilen
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.
Toni Wilen is offline  
Old 22 January 2023, 21:34   #3
jotd
This cat is no more
 
jotd's Avatar
 
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.
jotd is offline  
Old 23 January 2023, 04:57   #4
4matmusic
Registered User
 
Join Date: Jan 2023
Location: uk
Posts: 8
Yes that would be a great addition, many thanks.
4matmusic is offline  
Old 11 June 2023, 19:31   #5
4matmusic
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.
4matmusic is offline  
Old 16 June 2023, 15:19   #6
Sani11
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.
Sani11 is offline  
Old 17 June 2023, 15:36   #7
4matmusic
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.
4matmusic is offline  
Old 19 June 2023, 19:39   #8
Toni Wilen
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 )
Toni Wilen is offline  
Old 22 June 2023, 14:49   #9
4matmusic
Registered User
 
Join Date: Jan 2023
Location: uk
Posts: 8
Excellent, many thanks for adding this.
4matmusic is offline  
Old 22 June 2023, 14:54   #10
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,358
seconded! excellent, thanks!
jotd is offline  
Old 23 June 2023, 01:39   #11
4matmusic
Registered User
 
Join Date: Jan 2023
Location: uk
Posts: 8
Sorry, where do I download winuae.7z from?
4matmusic is offline  
Old 23 June 2023, 08:10   #12
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
From winuae.net: https://www.winuae.net/files/b/winuae.7z
StingRay is offline  
Old 23 June 2023, 19:26   #13
4matmusic
Registered User
 
Join Date: Jan 2023
Location: uk
Posts: 8
Ah, thanks.
4matmusic is offline  
Old 04 July 2023, 15:44   #14
hitchhikr
Registered User
 
Join Date: Jun 2008
Location: somewhere else
Posts: 523
Most useful, thanks.
hitchhikr is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:21.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09187 seconds with 13 queries