Game Development Community

TorqueDev debug issue.

by Vladislav Kostin · in Torque Game Builder · 02/15/2011 (2:05 am) · 4 replies

I have set up the debugger:

dbgSetParameters(8777, "4_debug", false);

Wrote this function:

function sceneWindow2D::onMouseDown( %this, %modifier, %worldPos, %mouseClicks )
{
	echo("break!");
}

Set the Breakpoint inside this function, launch debugging, clicking the mouse and read console. Breakpoints and "Break" button newer work. Console:

Debugger connection from 127.0.0.1
break!
break!
break!
break!
break!

What am I doing wrong?

#1
02/15/2011 (7:10 am)
Echoing "break" will not actually act as a break point. To break in script, you will need an IDE like Torsion.
#2
02/15/2011 (9:02 am)
TorqueDev is the last name of Codeweaver, which indeed, has debuging capabilities, including setting breakpoints.

@Vladislav,

dbgSetParameters(8777, "4_debug", false);

Should be

dbgSetParameters(8777, "4_debug", true);

#3
02/15/2011 (9:08 am)
Mh, after checking that, I dont think that be the problem.

TorqueDev also has OneClick debugging, try activating that and removing your dbgSetParameters line. The place where you are putting it may the problem.
#4
02/15/2011 (9:29 am)
Novack, if I setting its to true, it doesn`t lounches at all. One click debugging it the same thing i wrote but with TRUE.


Michael, I`m not that stupid) I`m using TorqueDev, and I know what the break point is, I set it on the line where I`m calling the echo() which I`m calling to make sure that that line is executing. But breaking doesn`t happening.

But I think that doesn`t matter anymore. I desided that it`s easier for me to make my simple game engine and editor, than implement Box2d full functionality in TGB.

Thank you for everything. And I want to say couple of words about my expirience of learning TGB. Excuse my bad inglish).

[IMHO] The problem is not in the lack of documentation, but in its unbelevebly bad organisation) We got:

1.Offline Documentation,
2.Online Documentation,
3.TGB Documentation Landing Page,
4.Torque Developer Network

Every one of that resources have its own style of organisation of material, but always inconvenient (many links spread through the document ,or/and organised not in the most meaningful way). Giving the important links in the middle of the text is bad idea. For example, online documentation, Torque 2D/Reference Guide, and especialy Scrypting Referene is pretty hard to find.

Forum/Blog/Resources is very (very!) inconvinient to. I cant filter and orginise search results, for example, but its only one tiny little pice, of many many other anoying litle things.

Torque Developer Network not making things easier at all. Now its just another heap of crossing repeating unorganising material. And it have no link back to garagegames(?).. [/IMHO]

If I was your customer, I would love to see:

1. ONE tutorial that explains all the basics, tools, behaviors, and basics of scrypting.
2. Full complete downloadable reference covering:
- classes
- functions
- scrypting
for license owners:
- source modding and engine overviev
- source reference
3. Forum with phpBB3 or similar engine.

The example of perfect documentation, for me, is Box2d Documentation. Only two Documents, that makes everything perfectly clear, and great examples and forum.