<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zelmo</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zelmo"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Zelmo"/>
	<updated>2026-04-08T16:27:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Tutorials_webOS_Debugging_101&amp;diff=10642</id>
		<title>Tutorials webOS Debugging 101</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Tutorials_webOS_Debugging_101&amp;diff=10642"/>
		<updated>2010-07-30T20:13:26Z</updated>

		<summary type="html">&lt;p&gt;Zelmo: Corrected the use of the grep command.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If your results are not what you expected, use JavaScript's try/catch/finally block statements to localize the problem. The first thing you want to do is get as close as possible to where you believe the error is occurring. If you're not sure where, start at the beginning.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add mojo.logs to your code and evaluate them in putty.&lt;br /&gt;
&lt;br /&gt;
Mojo.Log.error(&amp;quot;****V&amp;quot; + &amp;quot; my variable: &amp;quot; + this.variable );&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
putty.exe&lt;br /&gt;
(for emulator)&lt;br /&gt;
&amp;lt;p&amp;gt;ip address &amp;quot;localhost&amp;quot; port 5522&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;connection type: ssh&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;when command line opens, type &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;no password just hit enter&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;type: &amp;lt;code&amp;gt;grep payment /var/log/messages&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;quot;payment&amp;quot; is the string you are searching for with grep&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;after you log in to putty:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Mojo.Log.error writes to /var/log/messages&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;grep: searches for the string following grep within the file specified after the search string, and prints out those lines&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;SIDE NOTE: if you copy text into the clipboard, you can paste it into putty by right-clicking in putty.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zelmo</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Tutorials_webOS_Debugging_101&amp;diff=10641</id>
		<title>Tutorials webOS Debugging 101</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Tutorials_webOS_Debugging_101&amp;diff=10641"/>
		<updated>2010-07-30T20:09:17Z</updated>

		<summary type="html">&lt;p&gt;Zelmo: Fixed some punctuation and spelling. Added &amp;lt;code&amp;gt; tags to commands that are to be issued in PuTTY.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If your results are not what you expected, use JavaScript's try/catch/finally block statements to localize the problem. The first thing you want to do is get as close as possible to where you believe the error is occurring. If you're not sure where, start at the beginning.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add mojo.logs to your code and evaluate them in putty.&lt;br /&gt;
&lt;br /&gt;
Mojo.Log.error(&amp;quot;****V&amp;quot; + &amp;quot; my variable: &amp;quot; + this.variable );&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
putty.exe&lt;br /&gt;
(for emulator)&lt;br /&gt;
&amp;lt;p&amp;gt;ip address &amp;quot;localhost&amp;quot; port 5522&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;connection type: ssh&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;when command line opens, type &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;no password just hit enter&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;type: &amp;lt;code&amp;gt;cat /var/log/messages | grep payment&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;quot;payment&amp;quot; is the string you are searching for with grep&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;after you log in to putty:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Mojo.Log.error writes to /var/log/messages&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;cat: types the file out&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;grep: searches it for the string following grep and prints out those lines&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;| (vertical bar): says pass the output of cat over to grep&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;SIDE NOTE: if you copy text into the clipboard, you can paste it into putty by right-clicking in putty.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zelmo</name></author>
	</entry>
</feed>