intfiction.org

The Interactive Fiction Community Forum
It is currently Mon Nov 19, 2018 1:18 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Nov 05, 2017 11:44 am 
Offline

Joined: Mon Dec 07, 2009 9:14 am
Posts: 189
Location: Chicago, IL
I'm still browsing the docs but is there a way to inspect an object in TADS 3 and see what it contains? For example, in an example in one of the files that comes with the distribution (gram.t), I find I get an error about an object that can't be indexed. The line in question is:

Code:
"[match <<i>>: token count = <<match[i][1]>>\n";

If I look at what `match` is, I just get this:

object#4079

I'm trying to see if I can inspect the object. For example, in Ruby, I might do this:

Quote:
puts page.browser.inspect
#<Watir::Browser:0x..f82cbcc9b2450c6c6 url="https://decohere.herokuapp.com/stardate" title="Veilus - Stardate Calculator">

Here I inspect the object `browser` and get some indication of how it's composed. I'm trying to do the same thing for my `match`.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Nov 05, 2017 1:32 pm 
Offline

Joined: Sat Jul 16, 2011 3:48 pm
Posts: 309
I'm not aware of any possibility other than launching game in Workbench and using the debugger, which is sadly limited to windows only :-(


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 4 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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group