Jens Ayton
8e4fb08cf7
Cleaned up some loose ends from nerfing callObjC().
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4596 127b21dd-08f5-0310-b4b7-95ae10353056
2011-08-15 23:20:16 +00:00
Jens Ayton
831a7c6b85
JS callObjC() is now only available in debug builds. Entity#dumpState() is now implemented natively so that it can be used in testrelease builds.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4562 127b21dd-08f5-0310-b4b7-95ae10353056
2011-06-15 21:25:46 +00:00
Jens Ayton
a943c4d41a
Cleaned up various script.foo.trace log message classes so they can actually be used to debug stuff.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4500 127b21dd-08f5-0310-b4b7-95ae10353056
2011-03-31 20:41:56 +00:00
Jens Ayton
128e76cc10
Further improved :time macro by giving the temporary function being traced a name, and duplicated the pattern for :trace.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4468 127b21dd-08f5-0310-b4b7-95ae10353056
2011-03-13 00:35:00 +00:00
Jens Ayton
6a2f165d8a
Removed redundant closure in previous commit.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4466 127b21dd-08f5-0310-b4b7-95ae10353056
2011-03-12 23:40:56 +00:00
Jens Ayton
374beab871
Fixed :time macro.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4465 127b21dd-08f5-0310-b4b7-95ae10353056
2011-03-12 23:34:10 +00:00
Jens Ayton
1d91108c8b
Fixed :trace typo.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4328 127b21dd-08f5-0310-b4b7-95ae10353056
2011-02-12 12:27:39 +00:00
Jens Ayton
19a0cbe07c
Added :trace console macro. Attempted fix for a crash apparently caused by dereferencing a NULL JS function pointer in profiler.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4327 127b21dd-08f5-0310-b4b7-95ae10353056
2011-02-12 12:27:14 +00:00
Jens Ayton
fcb033d3ef
Added Entity.prototype.dumpState() method when using debug console. [Mac] Debug.OXP is once again build by Build All target. Don't know what happened there.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4175 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-29 15:18:51 +00:00
Jens Ayton
cf1128ea7b
[Mac] Fixed inspectors.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4103 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-20 19:31:09 +00:00
Jens Ayton
4da54f3dc8
Softened on mission.setInstructions[Key](): passing no argument is now a warning, while passing explicit undefined is an error.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4100 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-20 14:38:32 +00:00
Jens Ayton
bd9000ee12
Console input is now reported as <console input> instead of oolite-debug-console.js:779 in stack dumps, profiles and traces.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4093 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-18 16:30:54 +00:00
Jens Ayton
708fb86642
Made the canonical global name for the debug console "console", because having different names in different contexts is silly. Kept "debugConsole" as a compatibility alias.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4091 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-18 15:23:13 +00:00
Jens Ayton
8f6a8cad98
Fixed console macros and tweaked some console property visibilities.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4082 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 18:19:52 +00:00
Jens Ayton
22e30e422f
JavaScript stack traces now include local variables. Stack trace configuration behaviour changed: instead of logcontrol.plist settings, traces for errors and warnings can be separately enabled/disabled through the debug console, or through preferences if debug OXP is not installed. Default is on with debug OXP, off otherwise. Settings in the debug console are persistent, as are showErrorLocations and showErrorLocationsDuringConsoleEval now.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4055 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 15:48:05 +00:00
Jens Ayton
ac6bbac3a1
Removed blatant lies that I verified were false two days ago when I wrote the code. D'oh.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4046 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 22:52:22 +00:00
Jens Ayton
51289b4fd2
Added :proto console macro to examine prototype chains.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4045 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 22:36:47 +00:00
Jens Ayton
96a358bae1
Removed unused compatibility-accessor helpers in prefix script that would no longer work anyway. Ignore undefineds in debug console pretty-printing. Treat PlayerShip.prototype as stale entity ref in PlayerShipGetProperty().
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4044 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 22:14:03 +00:00
Jens Ayton
926b2f81ea
Made use of ECMAScript 5 meta-stuff; methods defined in prefix header are now non-enumerable and non-writeable just like native ones.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4016 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-06 12:05:16 +00:00
Jens Ayton
62f35e872c
Tweaked console script so console input isn't forced into strict mode.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4015 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-06 01:24:13 +00:00
Jens Ayton
d9678aa0dd
Output prettification for debug console (and improved :d macro).
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4001 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-04 19:14:47 +00:00
Jens Ayton
c34f7e03f1
Enabled ECMAScript 5 strict mode in all built-in scripts.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3958 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-02 17:54:54 +00:00
Jens Ayton
ecfef79f97
File and line information is now suppressed for code called through the console.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3946 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 13:41:50 +00:00
Jens Ayton
dc5e27ada4
Built-in (more precisely, OXP-defined) console macros are now separate from user-defined ones; they take precedence and cannot be deleted or overwritten.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3909 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-26 13:28:06 +00:00
Jens Ayton
723846018e
Exposed global object as property of itself, instead of fiddling around with silly functions where it's needed.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3730 127b21dd-08f5-0310-b4b7-95ae10353056
2010-07-30 20:00:46 +00:00
Jens Ayton
dcbfd7f1c5
Fix up some callObjC() stuff in debug console.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3638 127b21dd-08f5-0310-b4b7-95ae10353056
2010-06-28 06:58:03 +00:00
Jens Ayton
3c88ad59f5
Cleaned up some invalid JS attributes. Fixed JS namespace pollution with call() and inspect(), and renamed call() to callObjC(). Mission variable names may no longer begin with underscores. Script names may no longer begin or end with underscores or whitespace. The missionVariables object may now be enumerated with for-in.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3636 127b21dd-08f5-0310-b4b7-95ae10353056
2010-06-27 23:52:37 +00:00
Jens Ayton
18bebd07c7
Started deploying profiling and thread-safety macros - even if they don't work in Windows, they're useful elsewhere. Profiling is now used on all Vector3D and Quaternion methods, all System methods, and the hot path for System.addShips(). Disabled aggressive JS GC testing in Mac TestRelease builds, so that profiling results are vaguely useful.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3623 127b21dd-08f5-0310-b4b7-95ae10353056
2010-06-27 13:25:08 +00:00
Jens Ayton
288b0650d5
Improved JS profiler output.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3592 127b21dd-08f5-0310-b4b7-95ae10353056
2010-06-23 20:02:36 +00:00
Jens Ayton
844b875396
Added basic profiling facility for JavaScript. Examples of use:
...
console.profile(function(){ console.shaderMode = "SHADERS_OFF"; });
or
:profile console.shaderMode = "SHADERS_OFF"
either of which print a string like:
0.94239 seconds (2.00559e-05 seconds JavaScript, 0.94237 seconds extension
time)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3543 127b21dd-08f5-0310-b4b7-95ae10353056
2010-06-15 16:28:42 +00:00
Jens Ayton
abc947defa
More version bumpage.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3526 127b21dd-08f5-0310-b4b7-95ae10353056
2010-06-13 17:44:06 +00:00
Jens Ayton
e12b40f5e2
Changes to the shader mode through the debug console is no longer saved. The reduced detail setting is now exposed through the console (also not saved), and disabled by the material test suite.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3430 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-29 19:42:46 +00:00
Jens Ayton
2474ea35a4
Documentation of maximumShaderMode in console script.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3346 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-14 17:12:42 +00:00
Jens Ayton
5599e4f375
More dust fun: dust box repeating is now handled in shader, so dust is now static geometry in shader mode.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3312 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-09 19:23:06 +00:00
Jens Ayton
c9cdbc7631
Added extra shader validation, controlled by DEBUG_SHADER_VALIDATION flag. Removed DEBUG_ENTITIES and merged DEBUG_OCTREE and DEBUG_OCTREE_TEXT into DEBUG_OCTREE_LOGGING.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3148 127b21dd-08f5-0310-b4b7-95ae10353056
2010-04-11 16:03:43 +00:00
Jens Ayton
d267cf71bf
Implemented fallback to simple shader mode when full shader doesn't build, and added test case. Added debug flag to disable callback behaviour, used in shader test suite. Also moved debug flags to their own header.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3144 127b21dd-08f5-0310-b4b7-95ae10353056
2010-04-11 13:57:02 +00:00
Jens Ayton
a84f5cc45f
Added symbolic constants (or the closest you can get in JavaScript) for debug flags to console object.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3143 127b21dd-08f5-0310-b4b7-95ae10353056
2010-04-11 13:04:26 +00:00
Jens Ayton
d3dca497f2
Added debugConsole.platformDescription for shader test suite. Also more radium green, because I can.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3141 127b21dd-08f5-0310-b4b7-95ae10353056
2010-04-10 17:35:16 +00:00
Jens Ayton
d966b450d0
Exposed OOLogInsertMarker() to debug console.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3139 127b21dd-08f5-0310-b4b7-95ae10353056
2010-04-10 11:01:13 +00:00
Jens Ayton
4c93d3118b
Exposed FPS display toggle and some GL renderer info to debug console. Allow empty titles in mission screens.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3138 127b21dd-08f5-0310-b4b7-95ae10353056
2010-04-10 10:37:19 +00:00
Jens Ayton
535798a07c
Improved :spawn macro to save new ship in a property and print a message on failure.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3055 127b21dd-08f5-0310-b4b7-95ae10353056
2010-03-03 23:24:35 +00:00
Jens Ayton
a97c00a247
system.addPlanet() and system.addMoon() now return the new planet.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3042 127b21dd-08f5-0310-b4b7-95ae10353056
2010-02-26 11:33:22 +00:00
Jens Ayton
8eb9b061ee
Debug script tweakage; no more <unknown script> for syntax errors on script loading.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3036 127b21dd-08f5-0310-b4b7-95ae10353056
2010-02-19 14:09:32 +00:00
Jens Ayton
efa62c5d96
After much debugging, writing specialized debugging tools, scratching my head and procrastinating, apparently fixed wormhole save/restore crashes through sheer nonsensical voodoo. Bah.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3010 127b21dd-08f5-0310-b4b7-95ae10353056
2010-02-06 19:39:56 +00:00
Marc
e81b28dc7f
Small stuff:
...
- Debug console's :spawn now uses a proper js method, instead of legacy_addShips.
- the new looser definition of 'thargon' now applies to all equipment methods.
- faster switch between in-flight sunlight & GUI lighting.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2942 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 11:34:53 +00:00
Jens Ayton
2e936d6971
New console feature: last non-null, non-undefined result is stored in varaible $.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2810 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-30 14:37:52 +00:00
Jens Ayton
9c076a03ab
Basic-debug.oxp can now be built with a makefile in DebugOXP/, instead of being build in tools/simpleDebugConsole by the Xcode project.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2794 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-28 14:41:50 +00:00
Jens Ayton
b3f7f8508a
Tidying up in project directory.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2793 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-28 14:25:17 +00:00