Egor Ushakov
ce2933b6c7
IDEA-348488 Debugger: coroutines view consumes CPU even when disabled
...
GitOrigin-RevId: b675b53a75ef2633fec3d01f2ffad9b9730d32b0
2024-03-12 19:28:28 +00:00
Egor Ushakov
af2e09befd
better diagnostics for IDEA-335672
...
GitOrigin-RevId: 31e06c741ef1e3a382eb57023561f0c77066e32a
2024-03-01 19:59:44 +00:00
Maria Sokolova
a61ab0f5ad
[coroutines-debugger] Minor improvements of Coroutines View Panel
...
* Group coroutines by parent Jobs instead of Dispatchers by default (registry: `coroutine.panel.show.jobs.hierarchy`)
* Print the name of the parent Job in the hierarchy when a given Job is a coroutine
* Mark the running coroutine and the current group (current Dispatcher, or Job) with a red tick
IDEA-332363
Merge-request: IJ-MR-126015
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
GitOrigin-RevId: 13564b1dfbb2327bf773d64c9644a2af637b1e1e
2024-03-01 19:34:35 +00:00
Egor Ushakov
ecccc475ac
EA-1018638 - OCE: JDWPException.toJDIException
...
GitOrigin-RevId: 440302a935092b9901e0048bf23d4b79c9de3eb1
2024-03-01 16:39:25 +00:00
Egor Ushakov
2d486a53ae
EA-703308 - IE: ConcreteMethodImpl.codeIndexToLineInfo
...
GitOrigin-RevId: ecfe8d7868a0665e44575e17c82e9f4ff1fb5447
2024-03-01 13:09:31 +00:00
Egor Ushakov
fc1b5ba67d
EA-820036 - VMDE: TargetVM.waitForReply
...
GitOrigin-RevId: ffb2c6563e28477b930aa13564000f71641fe4ca
2024-03-01 11:42:43 +00:00
Egor Ushakov
ac387c1274
[coroutines debugger] restored imports for correct cherry-pick
...
GitOrigin-RevId: a20d73a770d7760b8e8b47851fbbb69433ee2d1e
2024-02-28 21:00:55 +00:00
Egor Ushakov
3ed3275bb9
[coroutines debugger] code cleanup
...
GitOrigin-RevId: 15da6a7c1f261ab3e1e9895f822e4e10a15b7312
2024-02-28 12:54:11 +00:00
Egor Ushakov
0bf09dcbba
IDEA-347677 Coroutine frames are not shown in java code
...
GitOrigin-RevId: 7cdd247bda2de76ac77c20ad3d9d0ae3a230e293
2024-02-28 12:54:07 +00:00
Egor Ushakov
654452b24d
[coroutines debugger] use utility DebuggerUtilsEx.findOrCreateLocation
...
GitOrigin-RevId: 0ad053e7fdf8c9dbf9feed5bb584e5b106fd7e56
2024-02-28 12:33:11 +00:00
Egor Ushakov
f33de1cf04
IDEA-347584 OCE: JDWPException.toJDIException
...
GitOrigin-RevId: ca0612af1ea491107950740444bb8007f4511f2b
2024-02-27 16:42:19 +00:00
Egor Ushakov
555b48fbc0
IDEA-347561 IE: InvokableTypeImpl.invokeMethod
...
GitOrigin-RevId: 24f27036d79f4dccf4c27b64552f73c33f32ca5b
2024-02-27 16:42:14 +00:00
Egor Ushakov
75e181928d
[coroutines debugger] debug probes may be unavailable in some contexts, do not remember it forever
...
GitOrigin-RevId: 063d497cb34ae8a43db42e88bcb6b6d763ed980e
2024-02-21 14:18:21 +00:00
Egor Ushakov
88e0cb0241
[coroutines debugger] support step out in coroutines - fixed failing test
...
GitOrigin-RevId: 059f415cf0bf509cd9a0008bd1022fc27fb97fe3
2024-02-20 18:59:00 +00:00
Egor Ushakov
3f3c6232bd
[coroutines debugger] support step out in coroutines
...
GitOrigin-RevId: 511fb7af4dbed66f7cbf8777adc77b7a69caa0b3
2024-02-20 18:58:50 +00:00
Egor Ushakov
3b50a32b7a
[coroutines debugger] no need for project service
...
GitOrigin-RevId: f15d71e40929d364f734d9bb79abbbe2aedc06dc
2024-02-20 12:35:59 +00:00
Egor Ushakov
039b701eb3
IDEA-346569 Do not show coroutines view automatically
...
GitOrigin-RevId: 6b25e5286ec9988172a471286423674b3cfa3138
2024-02-19 13:23:52 +00:00
Egor Ushakov
d038506a05
[coroutines debugger] do not log VMDisconnectedException
...
GitOrigin-RevId: 01c2bdfb5a703a92000b04579342bc28f793c9b7
2024-02-15 15:10:19 +00:00
Egor Ushakov
3bf5ced067
[coroutines debugger] added require for ContinuationIdFilter parameter
...
GitOrigin-RevId: 67983f2fcb18f447f115a4931adda31ebcee125e
2024-02-15 13:33:24 +00:00
Egor Ushakov
3475e1a4cf
[coroutine debugger] fixed stepping in regular code
...
GitOrigin-RevId: 12e823c1698de91ae06476499822f59f095a5e43
2024-02-15 09:24:10 +00:00
Maria Sokolova
09f2e12232
[coroutine stepping]: obtain coroutines running on the current thread without evaluation.
...
[coroutine-stepping]: Temporarily revert evaluation of computing ids of coroutines running on the current thread. Replaced evaluation with a direct call to the method in DebugProbesImpl. Used helper class as a fast path.
Currently, evaluation does not work for K2.
Co-authored-by: Egor Ushakov <Egor.Ushakov@jetbrains.com >
Merge-request: IJ-MR-126011
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
GitOrigin-RevId: 940fdde35b88950ebe535e37d53fe20a1da5906f
2024-02-14 21:11:25 +00:00
Egor Ushakov
6413f6df0d
[kotlin debugger] do call toString for String objects
...
GitOrigin-RevId: 773380cf056b532dc66d40819bbe5b54ac6ac9f6
2024-02-14 08:01:53 +00:00
Maria Sokolova
853278313f
[corotines-debugger]: Preparation for the new API.
...
- CoroutineInfoData provides the last observed stack of continuations and creation stack trace.
- Minor refactoring: changed naming of some properties, removed unused classes
Merge-request: IJ-MR-124148
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
GitOrigin-RevId: 4ab639701b8601736f2bc4fb01dde6e2a92873a1
2024-02-13 20:04:10 +00:00
Egor Ushakov
16a48fb3b0
[kotlin debugger] do not gather collection elements one by one
...
GitOrigin-RevId: a8f315a87f4167a70b8cd8e0c27c21d20ea10b5a
2024-02-13 20:02:51 +00:00
Alexey Merkulov
df057d20c1
[debugger] IDEA-338723 Set evaluation strategy to be default for coroutine filtering during stepping
...
But disable it in tests because it doesn't work for K2 code fragment compilation now
The change is done to simplify in-IDE testing of the whole coroutine filtering solution. Only one registry flag is required to be changed now to switch on all capabilities.
GitOrigin-RevId: 4e97b4a49c44934fdb163100b4521c08df7cb600
2024-02-09 00:29:58 +00:00
Alexey Merkulov
93b212937e
[debugger] IDEA-338723 Extract continuation filter from thread instead of parameters
...
So the filter can be used on the code without continuation available
Note: now the code fragment is not working in K2 (compilation error). So this solution is switched off in registry by now.
GitOrigin-RevId: d68c8e75c920efdaab109503ca8f5d97713b9879
2024-02-08 15:58:07 +00:00
Alexey Merkulov
d4f36c6437
[debugger] IDEA-338723 Use chosen thread to extract information about coroutine filter
...
Prepare to fix suspending behavior while stepping in coroutines
GitOrigin-RevId: 3cddb3bf9bfb2260a0a106da6eb39be6d264b69d
2024-02-06 13:18:13 +00:00
Vladimir Parfinenko
40f60bd16e
[debugger] fix stack frames folding, IDEA-340584
...
There were some problems with folding/hiding,
please see test changes.
^IDEA-344033 fixed
GitOrigin-RevId: cc004b02094381a5ce85155c699c2f31b63a82d6
2024-02-01 08:40:16 +00:00
Alexey Merkulov
33b66d6181
[debugger] IDEA-338723 Fix job filtering for debugger stepping
...
Now there are non-trivial rules in local variables table generation. Suspend methods without the possibility to resume have just "$completion" parameter. But suspend methods with the possibility to resume have "$continuation" local variable and don't mention "$completion" parameter through it exists unnamed.
GitOrigin-RevId: 32c34042a75788b351c20593be9d7594ca29fbdd
2024-01-25 05:58:22 +00:00
Alexey Merkulov
bfd293811e
[debugger] IDEA-338723 Extract the current continuation id by the current thread and use it in the stepping filtering
...
IJ-CR-120446
GitOrigin-RevId: 67eeacfe38a479667a4a65b4103ef44587b857fa
2023-12-15 21:04:18 +00:00
Alexey Merkulov
61224b56eb
[debugger] IDEA-338723 Implement filtering by continuation during coroutines stepping
...
IJ-CR-120446
GitOrigin-RevId: 7a3e9f211d493ca8aafd8337e447705d0b0ddefa
2023-12-15 21:04:14 +00:00
Alexey Merkulov
b96742bf6f
[debugger] Refactoring: remove redundant argument
...
IJ-CR-120446
GitOrigin-RevId: f3141683fda98f42874dbcbdd82c2ecf314ec420
2023-12-15 21:04:11 +00:00
mvicsokolova
3b7fb93997
Removed usages of internal kotlinx.coroutines API in Coroutines Debugger.
...
Coroutines Debugger used internal kotlinx.coroutines machinery to implement provider of coroutines dump that could work without coroutines debug agent being attached (CoroutineNoLibraryProxy). This provider was deleted.
For more details see IDEA-335375.
Merge-request: IJ-MR-121282
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
GitOrigin-RevId: 6a71fc3908a32bc7e45910a58fbe605939d90643
2023-12-07 18:23:46 +00:00
Egor Ushakov
e16056e865
IDEA-335672 Debugger freezes when debugging IDEA plugin - report errors for better diagnostics
...
GitOrigin-RevId: 235a38f15894cd40ca7f4c4cf8718016526af957
2023-10-24 17:31:26 +00:00
Ilya Kirillov
a2bbe4d318
Remove snapshot kotlin stdlib from Kotlin plugin
...
^KT-62510
^KTIJ-20529 fixed
GitOrigin-RevId: a49099902566abb23dfb56a578b368b4973e332f
2023-10-20 20:53:09 +00:00
Matt Ellis
0bf8e039d8
Update coroutines debugger to group by Job
...
GitOrigin-RevId: 68a3276883a6febeb9547f2f40f17be45f86d873
2023-09-27 12:03:25 +00:00
Daniil Ovchinnikov
27e155fc21
IJPL-167 bump language and API version 1.8 -> 1.9
...
GitOrigin-RevId: 5204df1784bbbba550476415e4ceff7368ab5fd4
2023-09-19 19:52:47 +00:00
Vladimir Parfinenko
c7e548f0ca
[kotlin debugger] hide variables from inner inline scopes IDEA-331620
...
^IDEA-331620 assigned to me fixed
GitOrigin-RevId: df2972bd936b4ac5f96557f945fdc374698bc085
2023-09-06 18:59:15 +00:00
Nikita Nazarov
78b1dcf907
[kotlin] Drop inline suffixes from spilled variables
...
^KTIJ-26894 Fixed
closes https://github.com/JetBrains/intellij-community/pull/2567
GitOrigin-RevId: 124cdb7f9d3ef6bf1e769101f3afd836c9770b9f
2023-09-05 17:15:37 +00:00
Egor Ushakov
ce05d19beb
debugger: set target component for the toolbar
...
GitOrigin-RevId: 8cd3cb3f166426e4c1e0b73e329b1a21def41663
2023-08-31 17:43:05 +00:00
Egor Ushakov
a1765e5e7b
IDEA-330958 IDEA debugger stuck after "Resume" while debugging coroutines
...
GitOrigin-RevId: c45ed779e9cc545bafd0308944b7d384dfea1368
2023-08-29 14:29:54 +00:00
Aleksey Pivovarov
66535294b2
KTIJ-26667 debugger: do not leak debug session via static field in coroutine debugger
...
This fixes forgotten CNFE handling in 29d88d5d807b3f7ff941314f63e4f6f3a22ceb28)
GitOrigin-RevId: e1bb4cf4e011742383495c7b100b82ef419f03ee
2023-08-17 11:47:30 +00:00
Anna Kozlova
77fdcbc747
Revert "KTIJ-26667 debugger: do not leak debug session via static field in coroutine debugger"
...
This reverts commit 29d88d5d807b3f7ff941314f63e4f6f3a22ceb28.
Commit leads to failed tests, e.g. `K2IndyLambdaKotlinSteppingTestGenerated$StepOver$Coroutines`
GitOrigin-RevId: af820a70eb93e27175b00643cb58bbe2ba552017
2023-08-16 20:33:15 +00:00
Aleksey Pivovarov
d64ff70c46
KTIJ-26667 debugger: do not leak debug session via static field in coroutine debugger
...
GitOrigin-RevId: 29d88d5d807b3f7ff941314f63e4f6f3a22ceb28
2023-08-16 13:44:35 +00:00
Maksim Zuev
822ce1f42d
[debugger] IDEA-327301 Fix breakpoints in crossinline lambdas for lambdas that are not passed to a non-inlined context
...
In this case the lambda is inline into bytecode and should be treated as inline lambda
Merge-request: IJ-MR-112445
Merged-by: Maksim Zuev <Maksim.Zuev@jetbrains.com >
GitOrigin-RevId: 7caf4b3a70a8cd277d427379bee4708bb231d5bd
2023-08-03 19:48:27 +00:00
Ilya Kirillov
d79dac7972
[kotlin] migrate KtAnalysisSession extension receiver to context receive as this is the proper way to use Analysis API
...
GitOrigin-RevId: 8caf2fd44779c9bd80fe06f4ee6ec0cc362c9737
2023-07-28 12:58:47 +00:00
Vladimir Dolzhenko
3b27581ba3
[kotlin][k2] Implement exit points highlighting
...
#KTIJ-26210 Fixed
GitOrigin-RevId: 483015faa2a72dc8a44d099ee695176523f177c4
2023-07-28 12:57:32 +00:00
Max Medvedev
c5be6baafc
[java debugger] SourcePosition#getElementAt is nullable
...
it indeed can return null, and clients should be ready for that
GitOrigin-RevId: c1a0c0b01951cf3035a4633bae0906f38a07060a
2023-07-09 12:48:19 +00:00
Roman Golyshev
7c5c02614e
KT-59098 [kotlin] Migrate to nullable resolveCall method
...
GitOrigin-RevId: ef0ac2f779775a16e734b5236918909f2d8b0511
2023-06-21 20:40:49 +00:00
Daniil Ovchinnikov
97f0a7fd3b
migrate usages of ModalityState.NON_MODAL to ModalityState.nonModal
...
GitOrigin-RevId: fb4855bfa90dbf384fed24871e4b28ab803847bb
2023-06-09 21:58:50 +00:00