dwds 11.2.2
dwds: ^11.2.2 copied to clipboard
A service that proxies between the Chrome debug protocol and the Dart VM service protocol.
11.2.2 #
- Depend on
ddsversion2.1.1. - Depend on
vm_servicevesrion7.2.0.
11.2.1 #
- Recover from used port errors when starting debug service.
- Update min SDK constraint to
2.13.0.
11.2.0 #
- Throw
SentinelExceptioninstead ofRPCErroron vm service API on unrecognized isolate. - Throw
RPCErroringetStackif the application is not paused. - Recognize
dart:uilibrary when debugging flutter apps. - Fix hang on hot restart when the application has a breakpoint.
- Fix out of memory issue during sending debug event notifications.
11.1.2 #
- Return empty library from
ChromeProxyService.getObjectfor libraries present in medatata but not loaded at runtime. - Log failures to load kernel during expression evaluation.
- Show lowered final fields using their original dart names.
- Limit simultaneous connections to asset server to prevent broken sockets.
- Fix hangs in hot restart.
- Initial support for passing scope to
ChromeProxyService.evaluate. - Require
build_web_compilersversion3.0.0so current version of dwds could be used with SDK stable2.13.xversions.
11.1.1 #
- Update versions of
package:sse,package:vm_service,package:dds.
11.1.0 #
- Add global functions to the injected client for
dart.developer.postEventanddart.developer.registerExtension. - Register new service extension
ext.dwds.emitEventso clients can emit events. This is intended to be used for analytics.
11.0.2 #
- Implement
_flutter.listViewsextension method in dwds vm client.
11.0.1 #
- Make adding and removing breakpoints match VM behavior:
- Allow adding existing breakpoints.
- Throw
RPCErrorwhen removing non-existent breakpoints.
11.0.0 #
- Do not send
kServiceExtensionAddedevents to subscribers on the terminating isolate during hot restart. - Support
vm_serviceversion6.2.0. - Fix missing sdk libraries in
getObject()calls. - Fix incorrect
rootLibreturned byChromeProxyService. - Fix not working breakpoints in library part files.
- Fix data race in calculating locations for a module.
- Fix uninitialized isolate after hot restart.
- Fix intermittent failure caused by evaluation not waiting for dependencies to be updated.
- The injected client now posts a top level event when the Dart application is loaded. This event is intended to be consumed by the Dart Debug Extension.
Breaking changes:
Dwds.startno longer supports automatically injecting a devtools server. AdevtoolsLaunchercallback must be provided to support launching devtools.
10.0.1 #
- Support
webkit_inspection_protocolversion^1.0.0.
10.0.0 #
- Support
VMService.evaluateusing expression compiler. - Update min sdk constraint to
>=2.13.0-144.0.dev. - Throw
RPCErroron evaluation if the program is not paused. - Record
ErrorRefreturned by evaluation in analytics.
Breaking changes:
- Change
ExpressionCompiler.initializemethod to include module format. - Add
LoadStrategy.moduleFormatto be used for communicating current module format to the expression compiler.
9.1.0 #
- Support authentication endpoint for the Dart Debug Extension.
- Support using WebSockets for the injected client by passing
useSseForInjectedClient: falsetoDwds.start(). Unlike SSE, WebSockets do not currently support keepAlives here (beyond the standard WebSocket pings to keep the socket alive).
9.0.0 #
- Fix an issue where relative worker paths provided to the
ExpressionCompilerServicewould cause a crash. - Fix an issue where the injected client connection could be lost while the application is paused.
- Support keep-alive for debug service connections.
- Depend on the latest
package:sse. - Filter out DDC temporary variables from the variable inspection view.
- Add
DwdsEvents around stepping and evaluation. - Send an event to the Dart Debug Extension that contains VM service protocol URI.
- Depend on
package:vm_serviceversion6.1.0+1. - Update the
keepAliveconfigs to prevent accidental reuse of a connection after stopping a debug session. - Support disabling the launching of Dart DevTools through
Alt + dwithenableDevtoolsLaunch. - Opt all dart files out of null safety for min SDK constraint update.
Breaking changes:
LoadStrategys now require amoduleInfoForEntrypoint.
8.0.3 #
- Fix an issue where failed hot restarts would hang indefinitely.
8.0.2 #
- Change
ExpressionCompilerto acceptFutureOr<int>port configuration. - Depend on
package:vm_serviceversion6.0.1-nullsafety.1.
8.0.1 #
- Support null safe versions of
package:crypto,package:uuidandpackage:webdriver.
8.0.0 #
- Improve logging around execution contexts.
- Remove the expression compilation dependency update from the create isolate critical path.
- Expose new event stream for future use with analytics.
- Update
ExpressionCompilerto include newinitializemethod which has a parameter for the null safety mode. - Update
ExpressionCompilerServiceto change how it is instantiated and implement the newinitializemethod. - Provide summary module paths to the expression compiler
- Depend on
package:vm_serviceversion6.0.1-nullsafety.0.
Breaking changes:
- Change
ExpressionCompiler.updateDependenciesmethod to include module summary paths
7.1.1 #
- Properly handle
requireJSerrors during hot restarts. - Fix an issue where Dart frame computation could result in a stack overflow for highly nested calls.
- Fix an issue where calling add breakpoint in quick succession would corrupt the internal state.
- Fix expression evaluation failure inside blocks.
- Now log the encoded URI of the debug service to both the terminal and application console.
- No longer blacklist the Dart SDK as the
skipListssupport serves the same purpose. - Fix an issue where running webdev with expression evaluation
enabled would fail to find
libraries.jsonfile and emit severe error.
7.1.0 #
- Fix a potential null issue while resuming.
- Depend on the latest
package:vm_service. - Fix crash in expression evaluation on null isolate.
- Fix incorrect file name detection for full kernel files.
- Add
ExpressionCompilerService.startWithPlatformAPI to enable running expression compiler worker from a given location. - Support Chrome
skipListsto improve stepping performance. - Export
AbsoluteImportUriException. - Depend on the latest
package:vm_servicewhich supports a newlimitparameter togetStack.
7.0.2 #
- Depend on the latest
pacakge:sse. - Add more verbose logging around
hotRestart,fullReloadand entrypoint injection.
7.0.1 #
- Fix an issue where we attempted to find locations for the special
dart_librarymodule.
7.0.0 #
- Add support for the Dart Development Service (DDS). Introduces 'single client mode', which prevents additional direct connections to DWDS when DDS is connected.
- Update metadata reader version to
2.0.0. Support reading metadata versions2.0.0and1.0.0. - Support custom hosts and HTTPs traffic in a
ProxyServerAssetReader. - Remove heuristics from require strategies and use metadata to look up
module paths.
- Fix issue where upgrading
build_web_compilerswould cause missing module assets (JavaScript code and source maps).
- Fix issue where upgrading
- Fix issue where open http connections prevent the process for exiting.
- Add
ExpressionCompilationServiceclass that runs ddc in worker mode to support expression evaluation for clients that use build systems to build the code. - Require at least
devtoolsanddevtools_serverversion0.9.2. - Require at least
ddsversion1.4.1. - Require at least
build_web_compilersversion2.12.0. - Update min sdk constraint to
>=2.10.0. - Update
MetadataProviderto throw anAbsoluteImportUriExceptionwhen absolute file paths are used in an import uri.
Breaking changes:
- Change
ExpressionCompilerto require a newupdateDependenciesmethod. - Update a number of
LoadStrategyAPIs to remove heuristics and rely on theMetadataProvider. - No longer require a
LogWriterand correspondingverbosearguement but instead properly usepackage:logger. FrontendServerRequireStrategyProvidernow requires adigestProvider.
6.0.0 #
- Depend on the latest
package:devtoolsandpackage:devtools_server. - Support using WebSockets for the debug backend by passing
useSseForDebugBackend: falsetoDwds.start() - Ensure we run main on a hot restart request even if no modules were updated.
- Allow reading metadata generated by
dev_compilerfrom file to supply module information toDwds. - Hide JavaScript type errors when hovering over text in the debugger.
- Fix an issue where reusing a connection could cause a null error.
- Improve the heuristic which filters JS scopes for debugging needs.
Breaking Changes:
- Require access to the
.ddc_merged_metadatafile. - Remove deprecated parameter
restoreBreakpointsas breakpoints are now set by regex URL and Chrome automatically reestablishes them.
5.0.0 #
- Have unimplemented VM service protocol methods return the RPC error
'MethodNotFound' /
-32601. - Fix an issue where the application main function was called before a hot restart completed.
- Breaking change
AssetReadernow requires ametadataContentsimplementation.
4.0.1 #
- Fixed issue where
getSupportedProtocolswould return the wrong protocol.
4.0.0 #
- Pin the
package:vm_serviceversion to prevent unintended breaks.
3.1.3 #
- Fix an issue where the injected client served under
httpsassumed the corresponding SSE handler was also underhttps.
3.1.2 #
- Gracefully handle multiple injected clients on a single page.
- Update to the latest
package:vm_serviceand use more RPCError error codes on call failures. - Update the
require_restarterto rerun main after a hot restart to align with the legacy strategy. We therefore no longer send aRunRequestafter a hot restart. - Compute only the required top frame for a paused event.
- Change
streamListento return anRPCError/ error code-32601for streams that are not handled. - Populate information about async Dart frames.
- Populate the
exceptionfield in debugger pause event when we break as a result of an exception. - Prompt users to install the Dart Debug Extension if local debugging does not work.
- Allow for the injected client to run with CSP enforced.
- Implement the
getMemoryUsage()call. - Fix an issue where the injected client could cause a mixed content error.
3.1.1 #
- Change the reported names for isolates to be more terse.
- Implemented the 'PossibleBreakpoints' report kind for
getSourceReport(). - Change the returned errors for the unimplemented
getClassListandreloadSourcesmethods to -32601 ('method does not exist / is not available'). - Do not include native JavaScipt objects on stack returned from the debugger.
3.1.0 #
- Support Chromium based Edge.
- Depend on latest
package:sseversion3.5.0. - Bypass connection keep-alives when shutting down to avoid delaying process shutdown.
- Fix an issue where the isolate would incorrectly be destroyed after connection reuse.
3.0.3 #
- Support the latest version of
package:shelf_packages_handler. - Throw a more useful error if during a hot restart there is no active isolate.
- Fix a race condition in which loading module metadata could cause a crash.
- Correct scope detection for expression evaluation
- Silence verbose and recoverable exceptions during expression evaluation
- Return errors from ChromeProxyService.evaluateInFrame as ErrorRef so they are not shown when hovering over source in the IDE
3.0.2 #
- Fix an issue in JS to Dart location translation in
ExpressionEvaluator. JS location returned from Chrome is 0-based, adjusted to 1-based.
3.0.1 #
- Drop dependency on
package_resolverand usepackage_configinstead. - Bump min sdk constraint to
>=2.7.0.
3.0.0 #
- Depend on the latest
package:vm_serviceversion4.0.0.
Breaking Changes:
- Delegate to the
LoadStrategyfor module information:- moduleId -> serverPath
- serverPath -> moduleId
2.0.1 #
- Fix an issue where we would return prematurely during a
hotRestart. - Fix an issue where we would incorrectly fail if a
hotRestarthad to fall back to a full reload.
2.0.0 #
- Depend on the latest
package:vm_serviceversion3.0.0+1.
Breaking Changes:
- Now require a
LoadStrategytoDwds.start. This package defines two compatible load strategies,RequireStrategyand `LegacyStrategy. Dwds.startfunction signature has been changed to accept one more parameter of new interface typeExpressionCompilerto support expression evaluation- Provide an implementation of the
RequireStrategysuitable for use withpackage:build_runner. - Simplify hot reload logic and no longer provide module level hooks.
1.0.1 #
- Make the
rootoptional for theProxyServerAssetReader.
1.0.0 #
- Fix an issue where files imported with relative paths containing
../may fail to resolve breakpoint locations. - Remove dependency on
package:build_daemon. - Add
FrontendServerAssetReaderfor use with Frontend Server builds. - Depend on latest
package:ssefor handling client reconnects transparently on the server. - Fix an issue where a failure to initiate debugging through the Dart Debug Extension would cause your development server to crash.
- Fix an issue where trying to launch DevTools in a non-debug enabled Chrome instance could crash your development server.
Breaking Changes:
- No longer use the
BuildResultabstraction frompackage:build_daemonbut require a similar abstraction provided by this package. AssetHandlerhas been renamed toAssetReaderand no longer provides a generic resource handler. Specific methods for the required resources are now clearly defined. The new abstraction is now consumed throughdwds.dart.BuildRunnerAssetHandlerhas been renamed toProxyServerAssetReaderand is now consumed throughdwds.dart.
0.9.0 #
- Expose
middlewareandhandler.
Breaking Change: The AssetHandler will not automatically be added the
DWDS handler cascade. You must now also add the middelware to your server's
pipeline.
0.8.5 #
- Always bind to
localhostfor the local debug workflow. - Fix an issue where breakpoints could cause DevTools to hang.
0.8.4 #
- Support using WebSockets for the debug (VM Service) proxy by passing
useSseForDebugProxy: falsetoDwds.start()
0.8.3 #
- Support nesting Dart applications in iframes.
0.8.2 #
- Add the ability to receive events from the extension in batches.
0.8.1 #
- Depend on the latest
package:built_value.
0.8.0 #
- Add temporary support for restoring breakpoints. Eventually the Dart VM protocol will clearly define how breakpoints should be restored.
- Depend on latest
package:sseto get retry logic. - Don't spawn DevTools if
serveDevToolsis false. UrlEncoderwill also encode the base URI used by the injected client / Dart Debug Extension. ** Breaking Change **serveDevToolsis not automatically considered true ifenableDebugExtensionis true.
0.7.9 #
- Properly wait for hot reload to complete with the legacy module system.
- Fix issue with
getObjectfor a class with a generic type.
0.7.8 #
- Support optional argument
urlEncoderthat is used to encode remote URLs for use with the Dart Debug Extension.
0.7.7 #
- Handle getObject for primitives properly.
- Properly black box scripts if query parameters are provided.
0.7.6 #
- Fix issue with source map logic for the legacy module system.
- Allow setting breakpoints multiple times and just return the old breakpoint.
- Fix a bug with Maps that contain lists of simple types.
0.7.5 #
- The injected client's connection is now based off the request URI.
- Fix an issue where resuming while paused at the start would cause an error.
- Expose the
ChromeDebugExceptionclass for error handling purposes. - Expose the
AppConnectionExceptionclass for error handling purposes. - DevTools will now launch immediately and lazily sets up necessary state.
- Properly set
pauseBreakpointsonkPauseBreakpointevents. - Greatly improves handling of List, Map and IdentityMap instances.
- Lazily parse source maps to improve performance for large applications.
0.7.4 #
- Deobfuscate DDC extension method stack traces.
- Properly get all libraries with the
legacymodule system.
0.7.3 #
- Correctly set
Isolatestate if debugging is initiated after the application has already started.
0.7.2 #
- Account for root directory path when using
package:URIs withDartUri.
0.7.1 #
- Fix a bug where we would try to create a new isolate even for a failed hot restart. This created a race condition that would lead to a crash.
- Don't attempt to write a vm service request to a closed connection.
- Instead we log a warning with the attempted request message and return.
- Make all
closemethods more robust by allowing them to be called more than once and returning the cached future from previous calls. - Add explicit handling of app not loaded errors when handling chrome pause events.
0.7.0 #
DWDS.startnow requires anAssetHandlerinstead ofapplicationPort,assetServerPortandapplicationTarget.- Expose a
BuildRunnerAssetHandlerwhich proxies request to the asset server running within build runner. - Support the Legacy Module strategy through the injected client.
- Support DDK sourcemap URIs.
- Update SDK dependency to minimum of 2.5.0.
Bug Fixes: #
- Fix handling of chrome pause events when we have no isolate loaded yet.
0.6.2 #
- Capture any errors that happen when handling SSE requests in the DevHandler
and return an error response to the client code.
- Log error responses in the client to the console.
- Handle empty Chrome exception descriptions.
0.6.1 #
- Add
isolateReftoIsolatespauseEvents. - Depend on the latest
package:vm_service. - Implements
invoke. - Adds support for VM object IDs for things that don't have Chrome object Ids (e.g. int, double, bool, null).
0.6.0 #
- Add new required parameter
enableDebuggingtoDwds.start. Iffalseis provided, debug services will not run. However, reload logic will continue to work with the injected client. - Handle injected client SSE errors.
- Handle a race condition when the browser is refreshed in the middle of setting up the debug services.
0.5.5 #
- Properly set the
pauseEventon theIsolate. - Fix a race condition with Hot Restarts where the Isolate was not created in time for pause events.
0.5.4 #
- Fix issue where certain required fields of VM service protocol objects were null.
- Properly set the
exceptionPauseModeon theIsolate. - Depend on the latest
DevTools.
0.5.3 #
- Fix issue where certain required fields of VM service protocol objects were null.
0.5.2 #
- Fix issue where certain required fields of VM service protocol objects were null.
- Properly display
Closurenames in the debug view.
0.5.1 #
- Fix an issue where missing source maps would cause a crash. A warning will now be logged to the console instead.
- Depend on the latest
package:webkit_inspection_protocol.
0.5.0 #
- Fix an issue where we source map paths were not normalized.
- Added a check to tests for the variable DWDS_DEBUG_CHROME to run Chrome with a UI rather than headless.
- Catch unhandled errors in
client.jsand recommend using the--no-injected-clientflag for webdev users. - Add support for an SSE connection with Dart DevTools.
- Rename
wsUritourionDebugConnectionto reflect that the uri may not be a websocket. - Depend on latest
package:vm_service.
0.4.0 #
- Move
dataabstractions frompackage:webdevintopackage:dwds. - Move debugging related handlers from
package:webdevintopackage:dwds. - Move injected client from
package:webdevintopackage:dwds. - Create new public entrypoint
dwds.dart. Existing public APIservices.dartis now private.
0.3.3 #
- Add support for
getScriptfor paused isolates. - Add support for
onRequestandonResponselisteners for the vm service.
0.3.2 #
- Add support for
scopeinevaluatecalls.
0.3.1 #
- Improve error reporting for evals, give the full JS eval in the error message so it can be more easily reproduced.
0.3.0 #
- Change the exposed type on DebugService to VmServiceInterface
0.2.1 #
- Support
setExceptionPauseMode.
0.2.0 #
- Added custom tokens to the
wsUrifor increased security.- Treating this as a breaking change because you now must use the
wsUrigetter to get a valid uri for connecting to the service, when previously combining the port and host was sufficient.
- Treating this as a breaking change because you now must use the
0.1.0 #
- Initial version