(env: IBootloaderInfo)
| 204 | } |
| 205 | |
| 206 | function shouldForceProcessIntoDebugMode(env: IBootloaderInfo) { |
| 207 | switch (env.autoAttachMode) { |
| 208 | case AutoAttachMode.Always: |
| 209 | return true; |
| 210 | case AutoAttachMode.Smart: |
| 211 | return shouldSmartAttach(env); |
| 212 | case AutoAttachMode.OnlyWithFlag: |
| 213 | default: |
| 214 | return false; |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Returns whether to smart attach. The goal here is to avoid attaching to |
no test coverage detected