Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The result can't be fetched immediately when the expression be watched #281

Open
huanzai opened this issue Dec 7, 2024 · 0 comments
Open

Comments

@huanzai
Copy link

huanzai commented Dec 7, 2024

		self.dispose_add(
			self.breakpoints.data.on_send.add(self.on_send_data_breakpoints),
			self.breakpoints.function.on_send.add(self.on_send_function_breakpoints),
			self.breakpoints.filters.on_send.add(self.on_send_filters),
			self.breakpoints.source.on_send.add(self.on_send_source_breakpoint),

		)

		self.watch = watch
		self.watch.on_added.add(lambda expr: self.watch.evaluate_expression(self, expr))

I try to fix it

		self.watch = watch
		@core.run # async function
		def on_added_expression(expr):
			return self.watch.evaluate_expression(self, expr)

		self.dispose_add(
			self.breakpoints.data.on_send.add(self.on_send_data_breakpoints),
			self.breakpoints.function.on_send.add(self.on_send_function_breakpoints),
			self.breakpoints.filters.on_send.add(self.on_send_filters),
			self.breakpoints.source.on_send.add(self.on_send_source_breakpoint),
			self.watch.on_added.add(on_added_expression), # dispose when session expired
		)
@huanzai huanzai changed the title The result can't be fetched immediately when the variable be watched The result can't be fetched immediately when the expression be watched Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant