diff --git a/CHANGELOG.md b/CHANGELOG.md index 21a27909..ecc16c88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.24.1] + +- Fix for extended root property #751 + ## [1.24.0] - F10/F11 start debugging with stop on entry. diff --git a/src/xdebugConnection.ts b/src/xdebugConnection.ts index eb724863..fcfa64de 100644 --- a/src/xdebugConnection.ts +++ b/src/xdebugConnection.ts @@ -571,7 +571,7 @@ export class Property extends BaseProperty { } this.context = context if (this.hasChildren) { - this.children = Array.from(propertyNode.childNodes).map( + this.children = Array.from((propertyNode).getElementsByTagName('property')).map( (propertyNode: Element) => new Property(propertyNode, context) ) } @@ -644,9 +644,9 @@ export class PropertyGetResponse extends Response { */ constructor(document: XMLDocument, context: Context) { super(document, context.stackFrame.connection) - this.children = Array.from(document.documentElement.firstChild!.childNodes).map( - (propertyNode: Element) => new Property(propertyNode, context) - ) + this.children = Array.from( + (document.documentElement.firstChild!).getElementsByTagName('property') + ).map((propertyNode: Element) => new Property(propertyNode, context)) } }