It is currently Tue Feb 07, 2012 8:05 pm



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Can you use OMString webified attribute as a debug terminal?
PostPosted: Mon Feb 02, 2009 11:31 am 

Joined: Wed May 07, 2008 3:50 pm
Posts: 148
Location: Horsham, W Sussex, England
Image

I am appending debug std::cout's onto a single webified OMString attribute called m_allStrings.
I have tried to use a scroll box around my attribute called m_allStrings.
Unfortunately the text is still truncated in a small box.
The tool-tip however does display the whole string.
I have seen mention of name-value pairs and "aggregate tables", maybe the text box size is fixed.

Is there a way to do this?


Offline
 Profile  
 
 Post subject: Sorted
PostPosted: Fri Feb 06, 2009 2:07 pm 

Joined: Wed May 07, 2008 3:50 pm
Posts: 148
Location: Horsham, W Sussex, England
I have managed to get a working solution using html.

I embed this file in my project -

<HTML>
<HEAD>
<link>
<TITLE>Debug Tester</TITLE>
<style>

DIV.header {
   FONT-SIZE: 12pt;
   BACKGROUND-COLOR: white;
}

BODY {
   BACKGROUND-COLOR: white;
}

H1.head {
   FONT-FAMILY: Arial;
   FONT-SIZE: 22pt;
   COLOR: WHITE;   
}
.printerLineClass {
   FONT-FAMILY: Courier New;
    BACKGROUND-COLOR: white;
    FONT-SIZE: 10pt;
   WIDTH: 210pt;
    POSITION: absolute;
   HEIGHT: 300pt;
   COLOR: black;
   OVERFLOW: auto;
}                                                   
                                             
</style>
<script></script>
<script>                         

function fillTextDiv (obj, val ) { obj.innerHTML = val; }
function setPrinterLine1(value)   { fillTextDiv(document.all.PRINTER_LINE_1,  value ); }

var printerLine1 = new WebObject;
bind(window.printerLine1, 'DebugManagerPkg::DebugManager[0]::m_allStrings');
printerLine1.update = setPrinterLine1;                                                                                                                             
                 
</script>
</head>
<body>

<HTML>
<div></div>

</body>
</html>



Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron

suspicion-preferred