Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
14 user(s) are online (13 user(s) are browsing Forum)

Members: 0
Guests: 14

more...


Browsing this Thread:   1 Anonymous Users






Re: Debug output hosted
#4
Home away from home
Home away from home


See User information
@ BSzili / Kalamatee
Ah, yes. thank you very much. i see my stupidiness now

nevertheless, the sashimi question still stands.

Reason to ask is if functionility is patched like sashimi does (that is to say function RawPutChar), it seems impossible to catch debug output this way on windows hosted, while reported to work under linux hosted.

And i don't understand why.

Nevermind.

The 'problem' solved itself auto-magically somehow. To much left-overs i presume :S

Posted on: 2014/9/20 19:02

Edited by magorium on 2014/9/20 19:25:58
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Debug output hosted
#3
Home away from home
Home away from home


See User information
Quote:

magorium wrote:
Hi,

Here it states:
Quote:
D() will expand to nothing if DEBUG is 0 or undefined. Use bug() alone to force debug output whatever is the value of DEBUG. The usage is the same as printf(). On hosted, the output will be displayed in the console where AROS has been started. On native you have to use the tool Sashimi.

a) would that mean sashimi is unable to catch this debug output on hosted ?

b) if i use this function in a simple program:
#include <stdio.h>
#include <aros/debug.h>

#define DEBUG 1
int main(void)
{
  
D(bug("test"));
  return 
0;
}

I do not see this output in cli window when running windows hosted (v0-nightly) :-S

Are there other requirements necessary ?


It doesnt work because you are doing it incorrectly. You have to define DEBUG _before_ including the necessary headers, otherwise it is pointless.

Posted on: 2014/9/20 18:56
Resized Image
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Debug output hosted
#2
Home away from home
Home away from home


See User information
You have to define DEBUG before aros/debug.h is included.

Posted on: 2014/9/20 18:55
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Debug output hosted
#1
Home away from home
Home away from home


See User information
Hi,

Here it states:
Quote:
D() will expand to nothing if DEBUG is 0 or undefined. Use bug() alone to force debug output whatever is the value of DEBUG. The usage is the same as printf(). On hosted, the output will be displayed in the console where AROS has been started. On native you have to use the tool Sashimi.

a) would that mean sashimi is unable to catch this debug output on hosted ?

b) if i use this function in a simple program:
#include <stdio.h>
#include <aros/debug.h>

#define DEBUG 1
int main(void)
{
  
D(bug("test"));
  return 
0;
}

I do not see this output in cli window when running windows hosted (v0-nightly) :-S

Are there other requirements necessary ?

Posted on: 2014/9/20 18:37
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project