[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Redirect trace output to a notepad window
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Redirect trace output to a notepad window

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Nick Gammon   Australia  (15,394 posts)  [Biography] bio
Date Thu 05 Feb 2009 03:35 AM (UTC)  quote  ]
Message
This small plugin redirects trace output (from the Game menu -> Trace) to a notepad window, rather than the main output window.

This is particularly useful if you are debugging triggers which omit from output, as that will also omit the trace output from the output window.

Save between the lines as Trace_To_Notepad.xml and use File menu -> Plugins to load that file as a plugin.


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Thursday, February 05, 2009, 3:33 PM -->
<!-- MuClient version 4.37 -->

<!-- Plugin "Trace_To_Notepad" generated by Plugin Wizard -->

<muclient>
<plugin
   name="Trace_To_Notepad"
   author="Nick Gammon"
   id="adf79802005a0d6186530bee"
   language="Lua"
   purpose="Redirects trace to a notepad window"
   date_written="2009-02-05 15:32:15"
   requires="3.67"
   version="1.0"
   >

</plugin>


<!--  Script  -->


<script>
<![CDATA[

function OnPluginTrace (line)
  AppendToNotepad ("Trace", line .. "\r\n")
end

]]>
</script>


</muclient>



- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (15,394 posts)  [Biography] bio
Date Thu 05 Feb 2009 06:05 AM (UTC)  quote  ]
Message
Also see http://www.gammon.com.au/forum/?id=9218 which shows how to do a similar thing to a miniwindow.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,245 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]