Released: 2026-11-29
Changes since version 1.3.29 (released 2026-07-25)
GExperts 1.4 keeps its settings under a registry key of its own, GExperts-1.4 below the IDE's key, instead of GExperts-1.3. On its first start it copies the settings of the newest older version there, so nothing has to be set up again. The older version keeps its own settings: changes made in 1.4 do not reach it, and going back to 1.3.29 brings back the settings as they were when 1.4 was installed. The files in GExperts' data folder are shared by both versions.
.dpr, .dpk or .dproj) it adds the units of the project that are in the project's directory or below it, like the Code Formatter for Project Units does in the IDE, and says how many it left out. A file that is already in the list is not added againthen and do at the start of a line, one level deeper than the statement they belong to, and keeps what follows them on the same line; the conditional expressions of Delphi 13 are left alone. With Always, a block after then or do is indented one level deeper than the then or do, with its end below it, and so is an else block that follows that end on the same line. Unchanged and Never format as before, and existing settings keep their meaning (feature #200, suggested by Lars Fosdal)begin or a bracket in its text no longer throws off the matching of the code around it (feature #260)-r<key>, and its settings there name folders or files that other IDEs probably use as well, it says which ones once the IDE has started: its data folder, if it is the one of the IDE's own key, and every data file outside it, such as a capitalization file kept in a folder of the user's own. Both IDEs would otherwise overwrite each other's changes to them without a word. It says so once per key, which it records in Misc\SettingsKey (GxInspect ticket #20)VERSION reports; it now says "RAD Studio 2010" (bug #532)| puts it. The option had always been offered but was never implemented, so such a template was inserted at the cursor like any other (bug #529)| is, and without one at the start of the inserted text. Before, the cursor was placed relative to where the template name had been typed, which after the insert pointed into unrelated code. When the template was chosen by selecting its name, the cursor position was not set at all (bug #533)TEvalDialog code after it has been closed. GExperts hooked the dialog every time it became the active window rather than once, so from the second activation on, for instance after Add Watch or after switching to the Watch List and back, it kept its own handler as the original one and the IDE's own clean-up of the dialog was never called. The destroyed dialog then stayed registered with the debugger, and the next step crashed in TEvalDialog.IOTAInternalThreadNotifier_EvaluateComplete. The dialog is now enhanced once, which also stops its saved size and position from being restored again on every activation (bug #527, reported with a fix by ura)_ as one number, instead of a number followed by an identifier, for decimal and hexadecimal numbers alike. The sign of an exponent, as in 1.5E+10, now also belongs to the number rather than becoming a separate token (bug #525)_ of Delphi 11 and later are no longer broken apart. 1_000_000 became 1 _000_000, which does not compile, and the same happened to hexadecimal numbers such as $FF_FF, to fractions and exponents, and to both ends of a range such as 1_000..2_000 (bug #524, reported by Philip von Melle){bla}procedure Foo;, now gets one blank line before it like any other, with the comment kept where it is. Such a line previously got two more blank lines every time, even when one was already there, and a comment on its own line above it was cut off from it by them (bug #531)Application.OnHint and Application.OnDeactivate for itself, overwriting whatever was assigned to them and never putting it back. Those two events belong to the VCL's multicaster, through which every TApplicationEvents component in the process is served, so from that moment neither GExperts' own forms nor any other plugin received them. The handlers also outlived the form: it is only hidden when its window is closed and is freed when the expert is switched off in the configuration dialog, and the two events still pointed at it afterwards. The chart now uses the TApplicationEvents component that the base form provides, which passes both events on to everyone else who wants them and detaches itself when the form is destroyed (bug #521)out parameter, and an out parameter that is an array of strings makes the caller empty that array before the call. The routine which does that is one of those DelphiSpeedUp replaces, and its replacement writes to a nil pointer here as soon as the array holds anything, which is from the second line onwards. The parameter is passed as var now, which needs no such call and changes nothing else, since every element is assigned anyway. That this is DelphiSpeedUp's doing rather than ours was established by disabling it: with the same out parameter and DelphiSpeedUp removed from both places it is registered, the window opens normally, and it opens with DelphiSpeedUp back in place once the parameter is var. Only Delphi 2007 was affected; the same code has always worked in Delphi 7 and in the later IDEs (reported by twm){GXFormatter.config=<name>} as the first line of a unit is now recognised, so it chooses the configuration for that unit as the configuration dialog says. The check required the whole unit, not its first line, to end with }, so it never matched. A configuration name of -, from that line or from GXFormatter.ini, now also leaves a unit alone when it is formatted in the editor; until now only formatting a file on disk did that (bug #545)TLineBuilder class that has been in dzlib all along: the list of experts sharing a shortcut in the configuration dialog, which was accumulated twice in the same loop because it is needed with and without the shortcut in front of it, the modifier names of the debug output for hotkeys, and the editor interfaces a module supports in the Project Module Information window. No change in behaviourEllipsisPosition property. It is a TLabel property that arrived in Delphi 2006, so, like Margins and StyleElements, it makes a form fail to load in Delphi 6 and 7. No class knows it in those versions, so unlike WordWrap it is offending wherever it appears.pas or .dproj got the type of that extension, so opening it failed or, for a project extension, first closed all files in the IDE (bug #563)GX_CondDefine.inc had disabled it (bug #578).vscode and .github, and everything below them are no longer added; they were meant to be left out but never were (hidden folders such as .svn and .git were never added). Junctions and symbolic links to folders are still followed, but no folder is added twice, and a link back to the folder itself or to one above it is left out, so it no longer descends until the paths get too long. A path ending in a backslash no longer gives entries with a doubled backslash. Each folder is now followed by its subfolders, rather than all folders of one level first; the folders behind junctions and symbolic links come after all the others (bug #587)MessageDlg appeared in the middle of the primary screen, wherever the IDE and the dialog they belong to were. They are now centered on that dialog, or on the IDE's main window (in Delphi 6 and 7 on the active window), and use the GExperts font (bug #575)object ... end blocks into the action list's (bug #595)$(BDS)\ path into a copy of the line before it, so that path was lost. In the search path dialogs, "Add ..\" and "Del ..\" also put an empty entry at the end of the list (bug #597)Source\Utils. The units they need from there are listed in the projects, so a missing one shows up in every Delphi version instead of only someSource\Utils is now also gone from the include, object and resource paths, an unused unit alias and a debugger source directory in a Delphi 2005 installation are gone, and the projects for Delphi 2009 and later no longer set output directories for C++ header and object files, which created an empty dcu directory next to the formatter test sourcesGX_FormatterUnitTests.dproj) build again. The XE8 project lacked most of the search path, and the 10.2 one still pointed into a directory layout that no longer exists and was set to a platform the IDE does not know any more. The debugger source path of a Delphi 2005 installation is also gone from the projects that still had it.dproj files of Delphi 2007 up to RAD Studio 13 list the same units as their .dpr files again. They still pointed to the Favorite Files units under their old directory and to two units that no longer exist, and lacked up to 38 units, so the To Do List and Grep reported missing files for the GExperts project itselfItems with a similar index type. Delphi 12 changed the index of TList.Items and TObjectList.Items from Integer to NativeInt, and a descendant's typed Items has to use exactly the ancestor's type, so TGXListIndex in GX_IndexTypes, which the other typed lists already used, now follows that change: it used to depend on 32 or 64 bit instead of on the Delphi version, which left it one type off in 32-bit Delphi 12 and 13. The list of units in GX_UsesManager uses it too nowcommon holds the interface and discovery units everyone shares, host the server core for a program that hosts a server of its own, plugin the unit an IDE plugin uses to find the server package, ide what only the server package needs, and src keeps the client. The README has a table of which directories each of them needs, and plugin/readme.txt says that a package-based plugin has to rename its copies of the units. The DLL projects and UnitTests/TestLineDiff take the units from their new placesGxInspect/trunk in the same repository, which GExperts takes in as an svn:external in GxInspect/ at the top of the working copy instead of keeping it under Projects/StandAlone/GxInspect. The DLL projects and UnitTests/TestLineDiff take GxInspect_Intf, GxInspect_Locate and GxInspect_LineDiff from there. A server package installed from the old location keeps loading from there until it is installed again from the new GxInspect/bin--list, --packages, --install and --uninstall at once, or a command after one of them are refused with a message and exit code 1, where some of these used to print the help and succeed and others quietly used a default. **A long option now takes its value after =**, e.g. --pid=1234 or --ide="My Project", instead of as the next word; short options keep theirs after a space, e.g. -t 10. Options go before the command, and everything from the first word that is not an option on goes to the server as it is, so a command argument that happens to look like an option is no longer taken by the client. The registry key of an IDE started with -r<key> is given with --key=<key>.GetLongPathName, and the 10.x project did not search the Winapi unit scope. Only relevant when building GxInspect from sourceu_dzGetOpt and what it depends on, under Projects/StandAlone/GxInspect/libs/dzlib, so GxInspect stays buildable on its own once it is moved out of the GExperts tree. It is kept in step with dzlib like ExternalSource/dzlib. Nothing uses it yet. Only relevant when building GxInspect from sourceInitializeNil and FreeAndNil that take several objects at once now live in a unit of their own, u_dzFreeAndNil, which uses no other unit. u_dzMiscUtils still offers them and passes each call on, so nothing that uses it changes. Code that needs only these overloads no longer has to pull in u_dzMiscUtils and the file, OS and class utility units it depends on. No change in behaviourBuildTools directory somewhere above it. It carries its own copies of the three helper scripts it used to call from the GExperts tree, and its build logs go to a tmp directory of its own, so GxInspect can be checked out on its own with BuildTools as an svn:external. Only relevant when building GxInspect from sourceProjects/StandAlone/GxInspect/bin, instead of the client going to Binaries and every package staying in its own version directory. The client looks for the packages beside itself, so the tool is complete in that one directory and can be copied elsewhere, and --install needs no path. The 64 bit RAD Studio 13 package is now named GxInspectServer370_64.bpl, since it would otherwise overwrite the 32 bit one, which carries the same name. Only relevant when building GxInspect from source; the .dcu and .dcp files of each version stay where they wereGxInspect --packages lists every version a server package exists for and, for each of them, whether that IDE is installed, whether a server package is registered for it, whether the server is switched on, whether the IDE is running, and the package file as the registry names it, marked when no file is there. It writes nothing and needs no running server. Anything out of the ordinary is named below the table: a package registered from another directory, several registered at once, which means the IDE loads every one of them, one listed under Disabled Packages, and a version whose package is installed while its server is switched off, where it loads and then stays silent. An IDE started with -r<key> keeps its settings under a different registry key, and --packages --key=<key> reads that one insteadGxInspect --install=<version> registers the server package for that version, takes it out of Disabled Packages if it is listed there, or in Delphi 7 out of the packages its default project options exclude, which is where that version records a package unchecked in its Install Packages list, removes another server package registered for that IDE, since two of them would both be loaded, and switches the inspection server on, which matters when its Tools switch was once clicked off, because the package would otherwise load and stay silent. It always asks first in a dialog that names the IDE, the package, the registry key and every change it is about to make, with No as its default and no switch to skip it, since that dialog is what keeps anything that can start a program from setting up an inspection server unnoticed. It is refused while that version's IDE is running, because the IDE writes its own list of packages back when its Install Packages dialog is confirmed and would drop the entry againGxInspect --uninstall=<version> unregisters every server package registered for that version and removes any entry that disables or excludes one, after asking in the same dialog as --install, and is refused while that IDE is running for the same reason. The package files stay where they are, and so does the inspection server's on/off switch, so a later --install finds it as it was leftC:\Delphi\13. They ask the registry where it is, the way the DLL builds already did, so they keep working after an update moves the installation, as the one to 13.2 did. Only relevant when building GExperts from sourceBREAKPOINTS lists them numbered, each with where it is and whatever is set on it; BREAK sets one on a line of a file, with a condition if one is given; BREAKSET changes one property, named as the ToolsAPI names it so that each IDE offers exactly what it has; and BREAKDELETE removes one or all of them. Where the ToolsAPI refuses, the IDE's own Toggle Breakpoint item in the editor menu is clicked instead, with the cursor put on the line first, and the answer says when a breakpoint was set or deleted that way. That is what gets breakpoints at all in Delphi 7, whose ToolsAPI refuses to create one whether or not something is being debugged and whose only deletion call complains and deletes nothing. Delphi 2005 to 2009 can set a breakpoint but not delete one: their ToolsAPI has no call that removes one, and there the IDE's own toggle command does nothing whichever way it is reached -- by executing its action, by clicking its menu item, or by sending the key the IDE binds to it -- so the answer says the breakpoint is still where it was instead of claiming it was deleted. Whether a breakpoint sits on a line with code to stop on is only known once the process runs, and the listing marks the ones the running process rejectedEGxInspect rather than a plain Exception, so a program that embeds the server can tell its refusals from anything else it catches around the call. Nothing changes for a command that fails: it still answers with an ERROR line rather than raisingSTEP and RUNTO commands drive the debugger and answer once the debugged process has stopped again, saying in which thread, at which file and line, and in which function, where executing the Step Over action answered as soon as the action had run and said nothing about where the process went. STEP steps into or over a statement or a machine instruction, on to the next line that has source, or until the current function returns (Delphi 2005 and later); RUNTO runs to a line of an open file, as Run to Cursor does. The answer says when the process stopped somewhere else: in code without source, on an exception, at a breakpoint, or before the line it was to run to. When the IDE puts up its exception notification the answer says so, and further steps are refused until it has been answered, because the debugger does nothing with them meanwhile. Both wait 10 seconds, or as many as given, and then answer that the process is still running or that nothing came of it. HELP no longer runs a long argument list straight into its descriptionMENU and MENUCLICK commands list the IDE's main menu and click an item of it, which reaches what ACTION cannot: an entry a plugin adds, the user's own tools, and everything the IDE generates on the fly, none of which has an action. Without a path MENU lists only the menu bar's own items, each with the number of items under it, since the whole tree runs to several hundred lines; with one it lists the whole branch that path names. A path names the item from the menu bar down, each step by component name or by caption, and a caption also matches by its beginning, so Tools|Inspection Server finds the package's own menu entry whatever port it currently shows; a step matching several items is refused with the ones it matched. A submenu named in the path is filled first by clicking it, as opening it does, because the IDE fills some of them only then, and every listed item is brought up to date with its action first, since without that a listing reported as hidden what an opened menu shows. MENUCLICK refuses a separator, a submenu, and an item that is disabled or hidden, because a click on a disabled item does nothing and says nothing. It clicks only after it has answered, so a command that opens a dialog does not hold the answer up, and the package's own entry does not stop the very thread that is waiting to send it. That entry is now scriptable in one direction only: switched off by a script, the server is gone and nothing is left to tell it to come back. Only relevant when the GxInspectServer package is installedDISMISS no longer reports a click that cannot have had any effect. It waits up to a second and a half afterwards to see what became of the click and says which of three things it found: the window has gone, it is still up with something modal on top of it, which is what a file dialog's Open with a file name that does not exist looks like, or it is still up and still enabled, which means either that nothing came of the click or that the button was never meant to close it. All three answer OK, since in all three the click was delivered; an error is reserved for what the command refuses to do. A click on a button whose window is disabled was the trap behind this. Windows neither refuses nor discards it: the message waits in the queue until that window is enabled again, which can be long after the script gave up. A caption is therefore matched only against buttons that could actually be clicked, meaning the button and every window it sits in visible and enabled, and DIALOGS marks the others (hidden or disabled) -- the common file dialog's own hidden Help button among them. Naming one anyway is refused with what is wrong with it, and so is a caption that matches more than one clickable button, which used to click whichever came first. The answer now names the handle and the caption of the button it clicked. A caption with a space in it can also be given on the command line in quotes now, which the client used to lose on the way. Only relevant when the GxInspectServer package is installedMODIFIED now says *what* changed in a file, not only that something did. Under each file it names the lines that differ from the file on disk, in the notation the diff program has printed since 1974, so 1a2,3 5d6 7c8,9 is two lines added after old line 1, old line 5 gone, and old line 7 replaced by two. In front of them the same thing in words, leaving out whichever of changed, added and removed is zero. Driving an IDE from a script means finding out afterwards that a file was touched, and until now there was no way to see by what or how much: the IDE knows the buffer, not the difference, so this reads the editor text and compares it against the file itself. A file the IDE marks as modified whose content is identical, which is what an edit that was undone again looks like, is now reported as such rather than as a change. The comparison is over bytes rather than text, with a UTF-8 byte order mark dropped from the file because the buffer has none. Everything the two versions have in common at the start and at the end is taken off before comparing, so an edit of a few lines in a large file costs nothing; a rewrite too large to work out line by line is answered as one region and says so. QUIT is unaffected and still only asks whether anything is unsaved. The comparison itself is a unit of its own with 26 tests of its own in UnitTests/TestLineDiff, and its answers were checked against those of the diff program for five different edits of the same file= does not exist. doGetDelphiPath.cmd reads the installation directory from the registry, and when it finds nothing there it went on to strip quotes from a variable that was never set, which is where that = came from; the message named it as the path it had looked for. It now reports that the version does not seem to be installed and names the registry key it asked, and if the key is there but its directory is gone it says that instead. Two more things came out of the same look: everything after the version was determined ran twice, because each case of the version switch jumped out of the subroutine it was in rather than returning from it, which is why both the error and the successful path were printed twice, and a failure was reported to nobody, so doBuildProject.cmd carried on and started the compiler with an empty path, whose "The system cannot find the path specified" was what a user saw last. Only relevant when building GExperts from sourceProjects/StandAlone/*/__Build_Project.cmd ended with popd, echo and pause after the compiler ran, and every one of those resets the error level, so the script always exited 0 no matter what happened. The shared doBuildStandAlone.cmd had been returning its result correctly all along; the callers threw it away. They now keep it and hand it back, and a Delphi version that cannot be determined exits 1 rather than reporting success. Only relevant when building the standalone tools from sourceProgram Files (x86), the default, with \Embarcadero\Studio\37.0\ was unexpected at this time. doBuildStandAlone.cmd printed the Delphi path unquoted inside a parenthesised block, and the ) of (x86) ended that block early. The __Build_Project.cmd of each tool now also accepts --nowait, which _buildproject.sh passes but all except DfmFilter ignored, so they no longer wait for a key at the end, and a Delphi version such as D13 or D2007, which builds with that version instead of asking which one to use; _buildproject.sh passes such a version on as well. doBuildStandAlone.cmd and doSelectDelphi.cmd have moved from Projects/StandAlone to BuildTools, so that GxInspect, which takes BuildTools in as an external, uses them too instead of keeping copies of its own, which had the same bug. Only relevant when building the standalone tools from source (bug #548, reported by Ian Branch)Projects\Delphi6 or Projects\Delphi7 directory is longer than 71 characters. Above 100 characters they turn hints and warnings off and say so. The switches for this are set by the new BuildTools/doGetDccMessages.cmd, which the GxInspect package build uses as well. Only relevant when building GExperts from source__BuildEverything.cmd with a Delphi version, which builds without asking anything, no longer waits for Enter when a standalone tool fails to build. doOpenInIDE.cmd now returns an error when it does not open Delphi 2007 because its installation is brokenGETPROP and SETPROP now reach a control's Text, and an edit's Modified. Both are public rather than published, so RTTI does not describe them and neither could be read or written before, which left no way at all to put text into an edit or a memo from outside: there is no keystroke command here. They join the table of hand-written accessors the check list box properties already use. Modified matters because it is what some code asks about instead of the text, GExperts' own feedback wizard among it, and because writing Text goes through WM_SETTEXT, which clears that flag rather than setting it, so filling a memo and having the form notice takes both. It needs the control to have a window handle, so the page it is on has to have been shown first. Only relevant when the GxInspectServer package is installedAUTH was missing from that table; and the client's own options were mentioned only in passing, --token nowhere at all, so they now have a section of their own. The client's help no longer refers to a command list it had stopped printing, no longer says the GExperts DLL decides which commands exist, and names the long forms --port, --timeout, --file and --interactive and the -h, --help and /? it has always accepted. Only relevant when the GxInspectServer package is installed<section>.<command>, so that two plugins registering commands with one server cannot silently take each other's names. More than one plugin can add commands, and two of them may well both want EXECUTE; until now the second registration replaced the first without a word. A plugin's section title therefore names the plugin rather than the subject, and the section GExperts registers its commands under is called GExperts instead of Experts for that reason, making them addressable as GExperts.EXECUTE and the like. Registering the same name twice from the same section still replaces it, which is what a plugin asked to register twice needs, but a name two different providers registered is refused when written bare, with both qualified spellings named, and HELP prints those two qualified. Short names are unaffected wherever they are unique, which is everywhere today. Only relevant when the GxInspectServer package is installedHELP answers by subject instead of printing everything it knows. The full listing had grown to 59 commands in 8 sections, which is more than anybody reads. With no argument it now prints the sections and the names in each; HELP <section> lists one section and matches on the start of its title, so HELP DEBUG reaches the debugger commands and HELP EDITOR the editor buffer ones; HELP <command> explains a single command; anything else is looked for in the names and descriptions, so HELP thread finds the four commands that mention one; and HELP ALL prints everything as HELP alone used to. The client no longer carries a command list of its own: it passes commands through unchanged and never interpreted them, so its copy could only drift, and it had, by a dozen commands. It now says how to ask the server instead. Only relevant when the GxInspectServer package is installedPROJECTS and SETPROJECT list the projects of the open project group and choose which of them is the active one, that being the project the IDE runs, compiles and debugs. Until now a script could see that a group held several projects but could not switch between them: there is no action for it either, since the Project Manager offers it as a toolbutton and a context menu rather than as a command. A project is named the way every other file is, with a path or by its file name alone. Worth knowing before a script uses it: switching while the debugger has a process stopped leaves that process running and stopped but takes it away from the debugger commands, because the IDE's current process follows the active project, and switching back restores it. Only relevant when the GxInspectServer package is installedDIALOGS reports every dialog and message box that is waiting to be answered, with its text and its buttons, and DISMISS presses one of them. This reaches boxes that nothing else here could see: a VCL message box is an ordinary form and appears in FORMS, but the prompt asking whether to save is a plain Win32 dialog and appears in no VCL list at all, so a script that ran into one had no way even to find out what was being asked. A button is named by its caption or by the handle DIALOGS reports, because the buttons of the IDE's own confirm box have no control id to name them by. Nothing is ever dismissed by itself, since which button to press is a decision, and both commands are answered without the IDE's main thread so that they work even when it is not answering. Only relevant when the GxInspectServer package is installed--pid naming a process that is not running is refused at once instead of waiting out the connection timeout for a server that can never appear, which is what made two calls in a row sit for four minutes after the IDE had already exited. Answers now have a time limit of their own, three minutes by default and settable with --read-timeout, because a process stopped in a debugger never answers its own server and the client used to wait for it for ever; the limit is longer than anything the server allows itself, so a slow command is not mistaken for a dead one, and --read-timeout 0 waits indefinitely as before. The messages about waiting now report how long was really waited rather than how long waiting was allowed to take, which also uncovered a connection retry that was spinning instead of spreading over the timeout when the port refused it outright. Finally the exit code distinguishes the reasons: 1 as before when a command answered ERROR or the program was misused, 2 when no server was found, 3 when it could not be connected to or refused the access token, and 4 when the connection died or an answer timed out and the run is therefore incompleteSTACK reads the call stack of a thread of the debugged process from the debugger itself, one frame per line with the source file and line of every frame that has one, which the IDE's own Call Stack window does not show. Without a thread it answers for the current one, COUNT says only how deep the stack is, and SIMPLE asks for names that are documented to be less qualified but were the same in every version tested. This was thought to be impossible until now: reading a frame put up an assertion from the debug kernel that killed the debugged process, and the cause turned out to be ours, since call stack frames are counted from one and the first thing asked for was frame zero. Works from Delphi 7 on, in a session the IDE started as well as in one it attached to. TREETEXT on the Call Stack window remains the way that needs no debugger and shows exactly what the IDE shows. Only relevant when the GxInspectServer package is installedQUIT SAVE no longer refuses over the project group in Delphi 7. The IDE invents a group around a single project, never saves it and never asks about it when it closes, so a group that has no file on disk was already meant to be ignored -- but only where the check looked at the module itself, which is where a group appears from Delphi 2005 on. Delphi 7 gives the group an editor for its .bpg as well, so the check found it there first and refused to close an IDE that would have shut without asking anything. Only relevant when the GxInspectServer package is installedSETTHREAD makes another thread of the debugged process the current one, which is what completes reading call stacks: the debugger keeps a stack ready for the current thread only, which is why the IDE's Call Stack window shows that one and why its Thread Status window is where a thread is switched. With SETTHREAD a script can walk every thread of a stopped process and read each stack with TREETEXT, and none of it asks the debug kernel for anything, which is what makes it safe where asking directly is not. Measured in Delphi 13 against a program whose two threads sit at deliberately different depths, switching between them and back. Only relevant when the GxInspectServer package is installedACTIONS and ACTION. Everything on the IDE's menus and toolbars is an action, so this reaches anything a script needs that has no command of its own here -- running a program, for instance, which is what settled whether Delphi 7 can produce a call stack for a process it started itself. ACTIONS lists them, filtered by name or caption when text is given, and marks the ones the IDE has disabled; ACTION executes one by name and refuses a disabled one, since a disabled action is one whose preconditions are not met. Whether an action is enabled is only as fresh as the IDE's last idle pass, which is worth knowing when asking straight after something was opened. Only relevant when the GxInspectServer package is installedTREETEXT says when the control it is asked about is not on screen, rather than answering with nothing. The text of a virtual tree only exists while it paints and Windows paints nothing into a window that is not visible, so a hidden one produced an empty answer whose explanation blamed the scrolling. It now refuses with what is actually wrong and names the way round it, and it asks the window rather than the control's Visible property, so a visible control inside a hidden parent is recognised as well. Only relevant when the GxInspectServer package is installedTREETEXT now reports every row of a virtual tree, not only the ones on screen. A row is asked about only when it is painted, so the control is walked from the top a page at a time and the rows are keyed on the node, which makes the overlap between one page and the next merge instead of repeat; the scroll position is put back afterwards. Measured against a call stack of 66 frames in a window showing about twelve. Where a tree cannot be scrolled through, the answer now says how many rows it got of how many the tree admits to, instead of looking complete. Anything that goes wrong while the rows are collected is caught and reported in the answer as well, because that code runs inside the host's painting, where an exception becomes an error dialog the host puts up -- and, with the walk repainting many times, one dialog per paint. Only relevant when the GxInspectServer package is installedTREETEXT command reads what a virtual tree displays, which nothing could do before: a TVirtualStringTree holds no text of its own, its OnGetText handler is asked for each cell as it paints, so there is no property to read and no way to construct the node references the handler needs. It therefore puts itself in front of that handler, makes the control repaint synchronously, and writes down what the original answered -- the tree supplies its own nodes. Only what is on screen is reported, because a row that is scrolled out of view is never painted and so never asked about. The handler is removed again as soon as the painting is done, and the same care is taken as with the event hooks elsewhere in GExperts: what was there is kept and called, and it is put back only after checking it is still ours, with a note in the answer if something displaced it. This matters beyond one control, since many of the IDE's own views are virtual trees -- the immediate use is the Call Stack window, which is how the call stack of a debugged process can be read at all after asking the debugger for it turned out to make its kernel fail an assertion and kill the debugged process. Verified in Delphi 2007, 10.2 and 13. The pre-Unicode IDEs declare the cell text as a WideString where the later ones use string, which is a difference nothing warns about: read the wrong way it produced a convincing-looking one-character answer for every row. Only relevant when the GxInspectServer package is installedATTACH <pid> attaches to a running process, PAUSE and RUN stop and start it, DETACH stops debugging it and leaves it running, TERMINATE ends it, PROCESSES says what is attached and THREADS lists its threads with their state and where each one is. Two things to know: the debugging IDE needs a project open, because the debugger takes the platform to debug from the active project and without one it attaches to nothing while still answering OK, which is why the answer says to check PROCESSES; and a paused process cannot answer its own inspection server, so a script must talk to the debugging IDE rather than the debugged one. ATTACH <pid> PAUSE stops the process the moment it is attached, which is what a wedged IDE calls for, and a Program Reset detaches rather than kills it; both of those need Delphi 2006 or later, as does DETACH. Reading call stacks and evaluating expressions are not included yet: doing either from inside a command makes the debug kernel pump the message loop, an action update then asks it for a call header while it is still answering ours, and it asserts and takes the debugged process with it. Once the process is paused the IDE shows its call stack itself, so it can be read off the screen in the meantime. Only relevant when the GxInspectServer package is installedVIEWASTEXT and VIEWASFORM commands, which is the IDE's own Alt+F12. Editing a form as text was possible before only by closing the unit first, since the designer owns the .dfm while the unit is open; now the view can be switched with everything left as it is, and all the commands that read and change editor text apply to the text view. It carries both ways without saving anything: a change made as text is in the designed form as soon as the view is switched back, and a property set on the designed form shows up in the text. The form is named by its unit or by its .dfm, either of them with a path, or a dot for the module in front; the two are also matched without their extension, because the IDE keeps only one of the pair open at a time and a script should not have to keep track of which. Unsaved changes are not asked about here, unlike closing a module, because the IDE carries the edited buffer from one view into the other rather than prompting. Two things to know: the answer says the view was switched without looking whether it was, since the IDE finishes the switch after the command has been answered, and text the IDE cannot parse produces a message box saying so and closes the module, losing the text. That box does not stop the server, so a script can find it with FORMS, read the reason with CONTROLS and dismiss it with CLICK. Only relevant when the GxInspectServer package is installedCLOSEMODULE command, which is what makes editing a form as text possible: a .dfm opened while its unit is closed is an ordinary text module, so the commands that read and change editor text work on it, and the form shows the change when the unit is opened again. Once the unit is open the designer owns the .dfm and there is no text to address, so the order matters: close the unit, open the .dfm, edit it, close it, open the unit. Closing follows the same rule as QUIT: a module with unsaved changes is refused rather than guessed at, since the message box the IDE would put up cannot be seen by whoever is driving it; SAVE saves it first and DISCARD throws the changes away. Only relevant when the GxInspectServer package is installedEModuleAbort rather than nothing at all. Only relevant when the GxInspectServer package is installedGETDESIGNSELECTION lists the selected components with their classes, DESIGNSELECT selects the ones named, replacing whatever was selected before, and DESIGNDESELECT selects the form itself, which is what the designer means by nothing being selected: there is no state where neither the form nor a component is. Non-visual components can be selected as readily as controls. The form is named the way every other command names a file: the unit's name, the .dfm's name, either of them with a path, or a dot for the module in front. Only relevant when the GxInspectServer package is installedSELECT takes either two line numbers, which selects those lines whole, or a line and a column for each end, and GETSELECTION answers in exactly the form SELECT takes, so what one reports the other accepts: where the selection is, its block style, its size and the text, numbered by line. SAVESELECTION writes the selected text to a file exactly as it stands and DESELECT clears it. Together with the commands that read and change the editor text this makes an editor expert testable from a script: select a known block, run the expert, read back what replaced it. Columns count characters from 1, which needs converting because the ToolsAPI counts bytes there, so a line with umlauts in it is selected where you meant rather than a few bytes short. Only relevant when the GxInspectServer package is installedMODULES command lists what the IDE has open: every module with its kind, whether it has unsaved changes and which one is in front, and under each the editors it has with their file names. Those file names are what the commands that read and change the editor text take, and a form unit has two of them, the unit and its .dfm, so this is also how to find out what may be asked for. MODIFIED answers the narrower question of what is unsaved. Only relevant when the GxInspectServer package is installedGETLINES reads it numbered, SAVELINES writes it to a file exactly as it stands, and INSERTLINES, REPLACELINES and DELETELINES change a range of lines. The file is named by its name, with or without a path, or . for the one the IDE has in front; lines count from 1 and $ is the last one, so 1 $ is the whole buffer, and INSERTLINES also takes one past the last line, which appends. The buffer is what is read and written, not the file on disk, so nothing is saved and the change can be undone in the IDE like any other. The text of the three writing commands comes from a file rather than the command line, because a command is one line and an answer ends at a line reading END, which a source file may itself contain. Offsets are counted in bytes, as the ToolsAPI counts them, so the UTF-8 buffer of Delphi 2005 and later round-trips exactly. Only relevant when the GxInspectServer package is installedGETPROP and SETPROP can reach properties that RTTI does not describe, starting with the Checked of a check list box, which is what several GExperts dialogs present their options in and what made them unscriptable. An array property carries no RTTI at all and cannot even be published, so these are answered from a table of accessors instead, addressed with the index in brackets: GETPROP <form> <clb> Checked[3], and SETPROP the same way. Leaving the index off lists every item, one line each, which is how a check list box is normally read. TCheckListBox's Checked, ItemEnabled and State are in the table so far; a program that links the server can add its own, for values or for objects, the latter letting a path continue into the object with ordinary RTTI. Which class an entry belongs to is decided by name, walking the ancestry, so descendants are covered and a class from a module with its own copy of the VCL is still recognized. The brackets in the property have nothing to do with the Name[N] that addresses a child control, and the index is passed on as text, so an entry taking two numbers or a key is possible later. Only relevant when the GxInspectServer package is installedScreen.OnActiveControlChange event and the callbacks that could be registered for it are gone. Nothing used them: the one place that ever registered such a callback had been commented out again because it did not solve the problem it was written for. From Delphi XE5 on the IDE assigns that event after we hook it and thereby throws the hook away, so a callback registered at startup would silently never have been called there. The hook on Screen.OnActiveFormChange next to it, which several IDE enhancements do use, is unaffectedGETPROP, SETPROP and EVENTS look for a control first, so nothing about addressing a control changes, and then among the components the form owns, which opens up timers, actions, menus, image lists and the rest; the new COMPONENTS command lists them, since they appear nowhere in the control tree. A component can be named by its class as well as by its name, because the ones worth asking about are often those the designer never named. CLICK still requires a real control, and now says what it found instead when given something else. This is also the only way to see who listens to an Application event: the subscribers are TApplicationEvents components, which re-publish those events, while EVENTS Application can report only the VCL multicaster that fans them out. Only relevant when the GxInspectServer package is installedScreen and Application objects can be inspected, which is where plugins hook and where nothing could look before. EVENTS Screen and EVENTS Application report their events and the handlers they are wired to, chains included, and the new GLOBALS command reports the rest of their state: the active form and control, the screen's DPI, size, monitor count and work area, the number of forms and data modules, and Application's main form, title, hint settings, Terminated and DialogHandle. Neither object is a form and neither publishes its events, so unlike everything else these are answered from a list in the source rather than through RTTI. A handler that is not a published method is now reported with its class, TSomething.(unnamed method at ...), instead of an address alone, which is often the whole answer to who owns it. Only relevant when the GxInspectServer package is installedTNotifyEventHook.HandleEvent, hiding both the handler that was there and the one that was added. GETPROP and EVENTS now report both, and recursively, since an already hooked event can be hooked again. Any plugin's hooks are followed, not only the two GExperts uses: there is one hook class per event signature, so they are recognised either by deriving from TEventHook, which is new and now the base of both GExperts hooks, or by the older convention of a class named ...EventHook holding exactly the two method pointers. The objects belong to another module, so they are read through a redeclared layout, guarded by that test, by the instance size and by both fields looking like method pointers; anything not matching is left alone rather than misread. Only relevant when the GxInspectServer package is installedTNotifyEventHook and TMessageEventHook, now share a base class, TEventHook, which holds the handler that was there and the one put in front of it. Nothing changes in what they do or how they are laid out in memory, so code that recognises them by name keeps working; what it adds is a single place where those two fields are declared, and something a plugin can derive its own hooks from to have them recognised from outside without sharing a unitHELP listing such a command twice while only the first one answered. Only relevant when the GxInspectServer package is installed--enable-gxinspect flag. It was behind a compile-time switch from when GExperts hosted the inspection server itself; since the server moved into a package, what GExperts contributes is four commands added to a server that is already running, and with no package installed there is nothing to add them to and nothing listening. Installing GxInspectServer<version>.bpl is therefore the whole decision, and it is worth roughly four kilobytes in the DLL. The __Build_Project_GxInspect.cmd and _buildprojectgxinspect.sh wrappers are gone with the flag, which also removes the trap of a normal build silently replacing the DLL a separate build had producedEVENTS command, listing every event a control has and the handler each one is wired to, or the events of the form itself when no control is named. GETPROP answers about an event whose name you already know; this is for finding out what a form you did not write actually handles. The connected ones get a line each and the rest are named together on a single line, since a form has thirty-odd events and one line each would bury the few that matter. Only relevant when the GxInspectServer package is installedGETPROP can read events, which used to answer (unsupported) like any other property type it did not handle. An event reads as the handler it is wired to, OnClick=TfmGrepResults.actFileSearchExecute, because a method pointer on its own answers nothing anybody wanted to ask; an event with nothing assigned reads (nil), and a handler that is not a published method of the object it belongs to, which is what an event assigned in code looks like, is reported by address since it has no name to give. Everything GETPROP already did applies, so a dotted path such as Action.OnExecute follows a button through to the action behind it. Writing events is not supported. Only relevant when the GxInspectServer package is installedVERSION now reports which module the server itself came from, as ServerModule: the file name of the package or DLL it was loaded from, or "linked into the executable" when it is part of the program. Two situations that look identical from outside are told apart by it, which matters when an IDE has both the server package installed and a GExperts DLL that could host one, and for a program that links the server unit directly. It is found by asking which module the code's own address belongs to, rather than by trusting a module variable, so it stays right however the unit was linked. Only relevant when the GxInspectServer package is installedQUIT closes the main window, so the "save changes?" prompt stops it and the IDE stays open, and that prompt is a plain API message box rather than a form, so it cannot be found with FORMS or dismissed with CLICK either. It is easier to run into than it sounds, because the IDE modifies things simply by opening them: a project is brought up to the current IDE version, a patch release being enough to count, a project that has no .dproj yet gets one written as it loads, and a form is brought up to the current property defaults, which is why the same .dfm opened in two IDE versions is modified by each of them. QUIT therefore looks before it closes: if closing would stop and ask, it answers with an error naming what is unsaved instead of closing and leaving the caller stuck. Which way to resolve that is the caller's to say, so QUIT now takes an argument: QUIT DISCARD closes every module first, throwing unsaved work away, QUIT SAVE saves everything first, and QUIT ASK closes and lets the IDE ask whatever it likes, which is what a plain QUIT used to do. The new MODIFIED command lists what is unsaved beforehand, separating what merely differs from its file from what has no file at all. QUIT SAVE refuses when it finds the latter, naming them, because saving something that has never been saved opens a Save As dialog and would hang in exactly the way this is meant to prevent. The project group the IDE invents around a single project is deliberately not reported: it is never saved and the IDE never asks about it, so listing it would predict a prompt that does not come. QUIT and KILL moved down to the level that implements them, so a program that links only the inspection server unit, with no IDE anywhere, can be closed through the protocol as well. Only relevant when the GxInspectServer package is installedGxInspect --list now says which IDE each entry is, by asking every server it found what its main window is called and printing that instead of the executable. The executable was the least useful thing it could show: for two IDEs of the same version it is the same string, which left the process id as the only thing telling them apart, and a process id is not something you can read off your screen. The caption names the project, so the listing now answers the question it is asked. It is fetched while listing rather than recorded when the server started, so it follows whatever the IDE currently has open, and a server that does not answer is still listed by its executable. VERSION reports the same caption in a MainWindow line. The new --ide <text> then picks an IDE by that caption instead of by process id, case insensitively, so --ide MyProject addresses the IDE that has MyProject open. Text that matches several windows is refused with the list, the same as saying nothing at all, and text that matches none is waited for until the connect timeout runs out, which makes --ide also the way to wait for an IDE that is still starting. Only relevant when the GxInspectServer package is installedGxInspect --list shows them with their process ids and --pid says which one a command is meant for; a command that says neither is refused rather than sent to whichever was found first. The socket is also no longer created with SO_REUSEADDR, which on Windows does not mean what it means elsewhere: it lets another process bind a port that is already being listened on, and the two of them then share arriving connections at random, which is not a property to leave on a channel that can drive the IDE. Only relevant when the GxInspectServer package is installedGX_InspectServerCore knows only the VCL and answers everything about forms, controls, properties and screenshots; GX_InspectServerIde adds what needs the ToolsAPI; GX_InspectionServer adds the GExperts commands. Each layer registers its commands with the name, the arguments, the description and the handler in one call, so HELP reports exactly what the server dispatches on instead of a hand-maintained table that could disagree with it. HELP lists the sections in the order the layers are stacked, which is the one visible change. The core is VCL only, FireMonkey is not supported. Only relevant when the GxInspectServer package is installed.dpk per version, because $(Auto) as a LIBSUFFIX is not supported by all of them, but a version directory now holds only what actually differs: its .dpk and two wrappers around a shared build script. Those directories carry the same names as the ones under Projects/, which is what lets the build take the version from the directory name and the installation path from the registry through the existing BuildTools scripts, instead of naming a compiler by path as the first one did. packages/_buildallpackages.sh builds all of them and reports one line per version. Two things genuinely differ between versions and are decided in one place: the JPEG unit comes from vcljpg up to Delphi 2007 and from vclimg from 2009 on, and XE2 and later have to be told the unit scopes to search, because the sources use the undotted RTL and VCL unit names that Delphi 7 still needs. The 32 and 64 bit RAD Studio 13 packages share the file name GxInspectServer370.bpl and differ only in which directory they are built in, so a caller finds either one under the name it derives. Delphi 6 has no package deliberately, its IDE does not survive being driven. The package is independent of GExperts, and GExperts talks to it whenever it is installed127.0.0.1:3580 could drive the IDE: read every open unit, screenshot the designer, run any expert, change settings and end the process. Loopback keeps other machines out, but not other programs on the same one, and a page open in a browser can reach a port on localhost. A connection now has to send AUTH <token> before the server answers anything at all, PING and HELP included, and a wrong token gets one error line and the connection closed. The token is 16 bytes from the system's cryptographic RNG, made fresh each time the server starts. Nothing needs configuring: while it is listening, the server writes its port, its process id and the token to %LOCALAPPDATA%\GxInspect\<pid>.ini and deletes the file when it stops, and the client reads it. Only someone who can read that file can drive the IDE, which under the user's own profile means that user and an administrator; it is not a defence against something already running as you. GxInspect --list reports which IDEs are running, without their tokens, and --pid picks one. An IDE that is killed rather than closed leaves its file behind, so the file names the process that wrote it and the client ignores and deletes one whose process is gone. ENABLE and DISABLE are gone with the port file they wrote, which nothing had read since the package took over the port. Only relevant when the GxInspectServer package is installed.dof for Delphi 7, a .bdsproj for 2005 and 2006 and a .dproj from 2007 on. Installing a package is normally done by opening it in the IDE and choosing Install in the project manager, and no IDE will open a bare .dpk, so until now the package could be built but not installed the usual way. They are set up to write the .bpl and the .dcp into the package directory, which is where the command line build puts them, so building from the IDE cannot leave a second binary somewhere else while the installed one goes staledebugging-helpers has been removed. It hosted the server core in a package of its own to prove the Delphi 6 crash was not GExperts' doing, and it referenced a unit that has since moved, so it would no longer have compiled. Nothing replaces it for Delphi 6: the packages under Projects/StandAlone/GxInspect/packages/ deliberately start at Delphi 7, and reopening the question would mean adding a Delphi 6 directory alongside them rather than resurrecting the zip. What was worth keeping from its notes is in the GxInspect READMEGxInspectServer<version>.bpl package, and GExperts adds its four commands to whichever one it finds running in this process, which is what makes the whole thing usable by a plugin that is not GExperts. Without that package installed there is no inspection server, deliberately, because two of them in one process would fight over the port. VERSION gains the two lines GExperts contributes, the marketing name of the IDE and the GExperts version, so nothing is lost against hosting it. Only relevant when the GxInspectServer package is installedTDataModule registers itself with the global Screen whichever module created it, and the package's exported GxInspectGetServer, found with GetModuleHandle and GetProcAddress under the name derived as 'GxInspectServer' + MajorVersionNumberChar + '0'. The contract between the two sides is one small unit with an interface and a fixed GUID. Only relevant when the GxInspectServer package is installedVERSION now also reports the full path of the executable it is running in and its process id, so a client can tell which of several running copies answered. The program name on its own could not: two IDEs of the same version, or the 32-bit and 64-bit host of one, look identical. The first line still names the host, and still says RAD Studio 10.2 (Tokyo) when GExperts is the one answering. Only relevant when the GxInspectServer package is installedOPENFILE, SHOWDESIGNER, DESIGNSCREENSHOT, QUIT and KILL with no GExperts loaded at all. The four things it used to borrow from GX_OtaUtils and GX_GetIdeVersion are implemented against the plain ToolsAPI instead. It names the IDE by deriving it from the registry key the IDE stores its settings under, so Software\Embarcadero\BDS\19.0 reads as BDS 19.0, rather than from a table that would have to be extended for every new release; GExperts overrides that and still reports the marketing name, so VERSION is unchanged for GExperts users. Only relevant when the GxInspectServer package is installedProjects/StandAlone/GxInspect/src/GxInspect_Server.pas and can now be built as a design-time package of its own, so an IDE can be driven with no GExperts loaded and an ordinary program can link the one unit to become inspectable. It needs no include file any more: the only version-dependent things left are guarded by UNICODE and WIN64, which the compiler defines itself. Units of the standalone levels are prefixed GxInspect_, since dotted unit names are out while Delphi 7 is supported and the prefix is therefore the only namespacing available. The package is one .dpk per Delphi version under Projects/StandAlone/GxInspect/packages/, starting with 10.2, because $(Auto) as a LIBSUFFIX is not supported by all the versions worth reaching. Nothing changes for GExperts itself, which still hosts the server as before. Only relevant when the GxInspectServer package is installed-f <file>), from standard input (--stdin) or from an interactive prompt (-i). Starting the program once per command cost a process start and a new connection every time, which dominated everything else; a three-command session that took several seconds now takes under a tenth of one. Blank lines and lines starting with # are skipped so a script can be commented, each command is echoed before its answer, the exit code is 1 if any command answered ERROR, and --stop-on-error stops at the first one. A line starting with a dot is for the client rather than the server: .sleep <ms> waits before the next command, .exit leaves. Waiting has to be the client's job, because a wait carried out by the server would block the IDE's main thread, which is the thread that still has to run for a deferred command such as EXECUTE or GXCONFIG to open its window; without it a script asks about a window that is not up yet. Plain QUIT remains the server command that closes the IDE. Only relevant when the GxInspectServer package is installedborlndmm.dll, which was measured to be thread-safe and to survive four threads allocating at once. The identical code answers hundreds of commands on Delphi 7 without a flicker, so the fault is in the Delphi 6 IDE. Only relevant when the GxInspectServer package is installedehReturnFalse to ehNoException and keeps the old name only as a deprecated alias. The configuration export now uses the new name, so the build no longer warns about it. No change in behaviourGxInspectPluginDataFolders names GExperts' data and cache folders for an IDE's registry key, and GxInspectPluginClone gives a copy of that key folders of its own. It copies the data folder, points the cache at an empty folder, changes every setting that named a file in the old folders, and reports the ones that name a file elsewhere, such as a capitalization file kept in a folder of the user's own. It refuses the IDE's own key. Nothing in GExperts calls them; GxInspect's --clone does (GxInspect ticket #20). A copy made that way also records its own key in Misc\SettingsKey, so GExperts does not warn about it at its first start (see New Features)TGExperts.CollectConfigurationFiles, which the export and import of the configuration and the check for copied settings share. ShowGxMessageBoxNonModal shows a GExperts message box without waiting for it to be closedTGxDropFileTarget (unit GX_DropFileTarget), which only allows copying and linking. The three copies of that setup are goneTGxDropFileTarget now registers its drop target again for every window the VCL creates for its control, through an invisible child control of that control, an approach taken from the Drag and Drop Component Suite maintained by Anders Melander (bug #560). The Expert Manager no longer needs its own list view class for that, Favorites no longer registers its targets again each time its tab is shown, and Open File no longer registers the target on its tabs again each time it is shown. The targets are also revoked when the dialog that holds them is freedGX_DEBUGLOG write the failure to the debug log (bug #557)Ota.GetAllPossiblePaths passes the project it is given on to Ota.GetEffectiveLibraryPath, which used the current project's search path instead. All callers ask for the current project, so nothing changes for users yet (bug #569)GX_Logging no longer lists the unit Variants, which it does not use. No change in behaviourOta.FindPathToFile and Ota.OpenFileFromPath are deprecated. A unit's source is now looked up with Ota.TryFindUnitSource and opened with Ota.OpenUnitFromPath, which the Uses Clause Manager, the editor toolbar and Project Dependencies share (bug #580)GX_CondDefine.inc ended with the label of a different symbol; the labels are corrected. No change in behaviourGX_CondDefine.inc kept three workarounds for Delphi 11 active in Delphi 12 and 13. The one for the buttons of the IDE's search path dialogs, which put them where these versions already have them, is now limited to Delphi 11; the formatter and image list workarounds stay active from Delphi 11 on. No change in behaviour (bug #577)Ota.TryFindPathToFile, which searches in the same order, instead of doing the same by hand. No change in behaviour (bug #584)TSimpleDirEnumerator that take a set of options, since the ones with Boolean parameters are deprecated in the dzlib updated in r6057. No change in behaviour