This repository was archived by the owner on May 27, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -449,6 +449,11 @@ export class TCFDebugSession extends LifetimeDebugSession {
449449 //single context hit, find the corresponding threadId
450450 const context = contexts . values ( ) . next ( ) . value ;
451451
452+ if ( ! context ) {
453+ this . console . log ( `No valid context found for breakpoint ${ breakpointID } . Ignoring` ) ;
454+ return ;
455+ }
456+
452457 void ( this . verifyInlinedBreakpoint ( context , breakpointTcfId ) ) ; //TODO: Should this be await-ed instead of ignored with the void operator?
453458
454459 //NOTE: *If* we don't know the thread ID, it may be a new thread or we have never had a threadsRequest.
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export abstract class TCFClient extends AbstractTCFClient {
239239 * @returns a list of buffers with the first 'error' buffer empty.
240240 */
241241 private static noError ( buffers : Buffer [ ] ) : Buffer [ ] {
242- return [ EMPTY_BUFFER ] . concat ( buffers ) ;
242+ return [ EMPTY_BUFFER , ... buffers ] ;
243243 }
244244
245245 //see https://download.eclipse.org/tools/tcf/tcf-docs/TCF%20Service%20-%20Run%20Control.html#Events
You can’t perform that action at this time.
0 commit comments