copy clipboard debug text

133 views
Skip to first unread message

Manuel Lopes

unread,
Jun 13, 2016, 4:33:06 PM6/13/16
to DroidScript
is possible copy to clipboad the text from debug?
i try:

h= app.Debug( );
app.SetClipboardTetry:);
but not work show undefined in copy of clipboard;thanks

Alex F

unread,
Jun 13, 2016, 4:57:57 PM6/13/16
to DroidScript
lay= app.CreateLayout( "Linear", "Horizontal" );
txt= app.CreateTextEdit("hi",1);
txt.SetOnEnter( enter );
lay.AddChild( txt );
app.AddLayout( lay );

function enter()
{
app.SetClipboardText( txt.GetText() );
app.ShowPopup( "copied to clipboard" );
}

Alex F

unread,
Jun 13, 2016, 5:04:57 PM6/13/16
to DroidScript
By debug i think it isn't possible. Or use:
app.SetClipboardText( "txt" );
Why u need debug?

Manuel Lopes

unread,
Jun 13, 2016, 5:18:18 PM6/13/16
to DroidScript
thanks alex the other normal text i know but debug not know;i want make a log of errors

Manuel Lopes

unread,
Jun 13, 2016, 5:19:14 PM6/13/16
to DroidScript
debug i mean the text from debug of droidscript code

Alex F

unread,
Jun 13, 2016, 5:31:57 PM6/13/16
to DroidScript
But u cnt copy the debug text into clipboard. U van only try this if u want the text in clipboard and debug:
txt="text";
app.Debug( txt );
app.SetClipboardText( txt );

Alex F

unread,
Jun 13, 2016, 5:37:23 PM6/13/16
to DroidScript
app.SetOnError( error );
//make error
bla
function error()
{ app.ShowPopup( "an error happens!" ) }

Manuel Lopes

unread,
Jun 13, 2016, 5:54:56 PM6/13/16
to DroidScript
thanks it works;and if i understand correct by write the blah word the popup activate by call the app.on.....


Alex F

unread,
Jun 13, 2016, 6:01:12 PM6/13/16
to DroidScript
The 'bla' causes the error

Manuel Lopes

unread,
Jun 13, 2016, 6:03:49 PM6/13/16
to DroidScript
yes i know is what i try tell;thanks this will help

BareK

unread,
Jun 13, 2016, 6:14:19 PM6/13/16
to DroidScript
Hi all,

Thanks Alex for the tip, it could help a lot :)
Manuel if you want/need more debug infos (warnings, for exemple) you can use try to get the logcat infos.

Dave gave clues to do it via DroidScript in this thread:
https://groups.google.com/forum/m/#!searchin/androidscript/Logcat/androidscript/RQOIlJMcMjQ

(If the link doesn't work, search for "CreateSysProc( "sh" ) script wait for completion?" in the forum)

Alex F

unread,
Jun 13, 2016, 6:16:26 PM6/13/16
to DroidScript
No problem ;D

Manuel Lopes

unread,
Jun 13, 2016, 6:24:57 PM6/13/16
to DroidScript
BareK the link not work why?

BareK

unread,
Jun 14, 2016, 8:08:21 AM6/14/16
to DroidScript
It happens when I copy/paste a link directly from my phone (from the mobile version of the forum)

Manuel Lopes

unread,
Jun 15, 2016, 8:44:04 AM6/15/16
to DroidScript
ok ;thanks i find by search the words you give
Reply all
Reply to author
Forward
0 new messages