Vladimir Ilmov
b100fd526f
(CoroutineDebugger)(Test) local variable removed from generated code
2020-06-19 00:32:19 +02:00
Ilmir Usmanov
542f1b8709
Minor. Update tests
2020-06-18 17:53:47 +02:00
Yan Zhulanow
8b5f2f9474
Fix duplicate stepping filter adding on plugin start-up (KT-38628)
...
Review KT-CR-1301.
2020-06-18 22:32:34 +09:00
Vyacheslav Gerasimov
4aa3040550
Build: Use runtimeOnly instead of deprecated runtime
...
maven-publish plugin uses `runtimeOnly` for runtime scope instead of
`runtime`
2020-06-14 20:31:26 +03:00
Alexander Udalov
6e67e1e78d
Replace appendln with appendLine in project
2020-06-11 13:01:30 +02:00
Vladimir Ilmov
50165397c7
(CoroutineDebugger) flaky test coroutine-debug library changed to 1.3.4
2020-06-08 22:54:09 +02:00
Yunir Salimzyanov
dce19b0ace
Cleanup 191 patchset logic (KTI-267)
2020-06-07 10:49:55 +03:00
Ilmir Usmanov
f1906bc966
Minor. Update test
2020-06-05 21:55:34 +02:00
Nikita Bobko
a94d2211e4
Cleanup getLineCount
2020-06-04 14:56:23 +03:00
Yunir Salimzyanov
3b9000cc0c
Cleanup 191 extension files (KTI-240)
2020-06-01 18:43:10 +03:00
Vladimir Ilmov
73f4b61022
(CoroutineDebugger) Windows test fix for kotlinx-coroutines-core
2020-05-31 20:24:41 +02:00
Yunir Salimzyanov
8d51b027ed
Add annotation to prevent test invocation twice
...
Cause: it helps to fix double inversion of muted non-flaky tests result
(KTI-216).
2020-05-30 22:50:34 +03:00
Vladimir Ilmov
0b3ae50f31
Revert "(CoroutineDebugger) Windows test fix for kotlinx-coroutines-core"
...
This reverts commit faaf40dbe5 .
2020-05-30 17:09:52 +02:00
Vladimir Ilmov
faaf40dbe5
(CoroutineDebugger) Windows test fix for kotlinx-coroutines-core
2020-05-30 10:55:49 +02:00
Yan Zhulanow
8a3e63aaf6
Minor: Clean up jvm-debugger-core module
2020-05-27 02:38:43 +09:00
Yan Zhulanow
9e85e9a036
Debugger, minor: Move method filters to the 'smartStepInto' package
2020-05-27 02:38:43 +09:00
Yan Zhulanow
45c97a2c5e
Debugger: Add test for KT-14057
2020-05-27 02:38:43 +09:00
Yan Zhulanow
bf890a1540
Debugger, tests: Change ADDITIONAL_BREAKPOINT directive format
...
- Make it extendable and easier to parse
- Allow to create additional function breakpoints
2020-05-27 02:38:43 +09:00
Yan Zhulanow
4244f05307
Debugger: Fix step over in functions with default parameters (KT-14828)
...
Adds a synthetic line number just before the original function call.
The new line number is recognized by the debugger which replaces the
'step over' action with 'step into' and stops.
2020-05-27 02:38:43 +09:00
Yan Zhulanow
69965eaa5c
Implement new stepping for suspend functions
2020-05-27 02:38:43 +09:00
Yan Zhulanow
0afd73b95c
Debugger: Pass files with inline functions to backend (KT-36404)
2020-05-27 02:38:42 +09:00
Yan Zhulanow
85a5e5241f
Debugger: Fix function breakpoints for libraries (KT-36403)
2020-05-27 02:38:42 +09:00
pyos
f625444be2
Update debugger test data
...
Note: neither the new nor the old data is actually correct, as the
debugger needs to stop on line 7 twice (once for the call, once for the
lambda) but ignore the synthetic line number in between.
2020-05-25 20:03:56 +02:00
Vladimir Ilmov
545fdb96d5
(CoroutineDebugger) 201 compatibility fix
...
#KT-39143 fixed
2020-05-25 14:36:22 +02:00
Vladimir Ilmov
5a5c1c3420
(CoroutineDebugger) Local variables should have precedence over restored.
2020-05-12 15:39:35 +02:00
Vladimir Ilmov
acced52384
(CoroutineDebugger) Tests added for no creation stack frame information
2020-04-23 11:36:15 +02:00
Vladimir Ilmov
73f5e48518
(CoroutineDebugger) Minor fixes, kotlinx.coroutines version fix
2020-04-21 09:48:13 +02:00
Vladimir Ilmov
0ce8ca7bcd
(CoroutineDebugger) negative frames removed from coroutine stack
2020-04-21 09:48:13 +02:00
Vladimir Ilmov
68c6e9e2d6
(CoroutineDebugger) kotlinx-coroutines-core:1.3.5 support
2020-04-21 09:48:12 +02:00
Vladimir Ilmov
6f42ed7248
(CoroutineDebugger) PreflightFrame support in tests via CoroutineAsync
2020-04-21 09:48:11 +02:00
Vladimir Ilmov
677ca2b9ae
(CoroutineDebugger) unused classes removed / code cleanup
2020-04-21 09:48:11 +02:00
Vladimir Ilmov
3cd0eb0fca
(CoroutineDebugger) Stack printing logic extracted to the single place
...
for DebugMetadata and CoroutinePanel, some corner cases fixed, test
cases added.
Added:
- external maven dependencies in test scenarios
- comparing stack traces + variables on breakpoint
2020-04-21 09:48:10 +02:00
Vladimir Ilmov
38ec388429
(CoroutineDebugger) Group coroutines by dispatcher
...
Kotlin Script support added.
#KT-37917 fixed
2020-04-21 09:48:09 +02:00
Dmitriy Dolovov
e69b2ed47d
Drop redundant dependencies on :native:kotlin-native-utils
2020-04-01 11:47:01 +07:00
Vladimir Ilmov
cd12226f20
(CoroutineDebugger) Alternative CoroutineInfoProvider added
...
Added way to retrieve coroutine information without an agent
in target JVM. 'kotlin.debugger.coroutines.switch' provides
two possibilities to test coroutines.
Agent way gets activated once kotlinx.coroutines.debug.DebugProbes
started with javaagent.
Library-less ways use DispatchedContinuation or ChildContinuationImpl
classes to retrieve coroutine information and stack traces.
2020-03-23 12:27:07 +01:00
Mikhail Bogdanov
420dd0d440
Extract directive map to separate class
2020-03-19 16:45:10 +01:00
Mikhael Bogdanov
ab7e71fd68
Support per files test directives
2020-03-19 16:45:10 +01:00
Mikhael Bogdanov
a795c38eb7
Introduce base class for codegen and diagnostic tests
...
Extract base TestFile and TestModule classes.
Move coroutinePackage related logic to base class
2020-03-04 14:51:10 +01:00
Yan Zhulanow
2f34bc88dc
Debugger: Add test for KT-14869
2020-02-14 17:35:19 +09:00
Yan Zhulanow
ea7ffa70b3
Debugger: Add test for KT-34905
2020-02-14 17:35:19 +09:00
Yan Zhulanow
6690f946d6
Debugger: Add test for KT-14296
2020-02-14 17:35:19 +09:00
Yan Zhulanow
6f425ee951
Debugger: Add test for KT-15652
2020-02-14 17:35:18 +09:00
Yan Zhulanow
dd33640238
Debugger: Skip inlined library frames on step over (KT-12016)
2020-02-14 17:35:18 +09:00
Yan Zhulanow
7490c229ac
EA-219152 (partially): Support KClass 'unboxing' in debugger
...
KClass can be 'unboxed' to a plain Java class. Debugger should be aware of this.
Unfortunately, this commit is not enough to fully support this scenario, as it's impossible to invoke KClass methods/extension on java.lang.Class instance. There should be an additional diagnostic that will forbid such calls.
2020-02-14 17:35:18 +09:00
Yan Zhulanow
3027fab238
EA-218160: Force-box only assignment l-values
2020-02-14 17:35:18 +09:00
Yan Zhulanow
dc71ab5bb3
EA-211010: Fix receiver parameter name for lambdas passed as value arguments
2020-02-14 17:35:18 +09:00
Yan Zhulanow
f129ab55c5
Debugger: Rewrite step out action
...
This commit fixes the following tests:
- KotlinSteppingTestGenerated.Custom.testStepOutInlineFunctionStdlib
- KotlinSteppingTestGenerated.StepOut.testStepOutSeveralInlineArgumentDeepest
2020-02-14 17:35:17 +09:00
Yan Zhulanow
f115bde682
Debugger, BE: Provide Java-like stepping for 'for' loops
...
- Visit '}' instead of 'for' keyword on post-condition
- Visit 'for' keyword on pre-condition
2020-02-14 17:35:17 +09:00
Yan Zhulanow
9cba72d5dd
Debugger: Remove flaky sleep-based stepping tests
2020-02-14 17:35:17 +09:00
Yan Zhulanow
8f29f8bc9d
Debugger: Rewrite step over action (KT-14296)
...
The main goal is to make behavior similar to what happens in Java. For instance, now we always skip lambdas.
Also, we can reliably use '$i$f' and '$i$a' synthetic local variables. There is no need in complicated hacks any more.
2020-02-14 17:35:17 +09:00